Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2023 16:00:22 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        dev-commits-src-all@FreeBSD.org, src-committers@FreeBSD.org, Emmanuel Vadot <manu@FreeBSD.org>, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 0b7c89c8c236 - main - autofs: media: Don't include  nosuid in the script
Message-ID:  <194935678.8142.1700838022590@localhost>
In-Reply-To: <20231124155107.fe95c803b3c5d0f1b18e3c9d@bidouilliste.com>
References:  <202311240945.3AO9jgdS079780@gitrepo.freebsd.org> <2003387449.7766.1700837236386@localhost> <20231124155107.fe95c803b3c5d0f1b18e3c9d@bidouilliste.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_8141_1624612915.1700838022586
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Ah thanks. Didn't notice the remark in the commit message.
 
Van: Emmanuel Vadot <manu@bidouilliste.com>
Datum: vrijdag, 24 november 2023 15:51
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: Emmanuel Vadot <manu@FreeBSD.org>, dev-commits-src-all@FreeBSD.org, src-committers@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Onderwerp: Re: git: 0b7c89c8c236 - main - autofs: media: Don't include nosuid in the script
> 
>  Hi,
> 
> On Fri, 24 Nov 2023 15:47:16 +0100 (CET)
> Ronald Klop <ronald-lists@klop.ws> wrote:
> 
> > Hi,
> >
> > Wouldn't this apply for a /usr/src/UPDATING or /usr/src/RELNOTES entry?
> > As it might change default behaviour on a security measure.
> 
>  No it doesn't.
>  As noted in the commit message nosuid is already present in
> auto_master, I'm just removing a duplicate here.
> 
> > Regards.
> > Ronald.
> >
> >  
> > Van: Emmanuel Vadot <manu@FreeBSD.org>
> > Datum: vrijdag, 24 november 2023 10:45
> > Aan: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
> > Onderwerp: git: 0b7c89c8c236 - main - autofs: media: Don't include nosuid in the script
> > >
> > > The branch main has been updated by manu:
> > >
> > > URL: https://cgit.FreeBSD.org/src/commit/?id=0b7c89c8c236fcfabd1abd59c6b8274c7eb80f5e
> > >
> > > commit 0b7c89c8c236fcfabd1abd59c6b8274c7eb80f5e
> > > Author:     Emmanuel Vadot <manu@FreeBSD.org>
> > > AuthorDate: 2023-11-07 09:42:53 +0000
> > > Commit:     Emmanuel Vadot <manu@FreeBSD.org>
> > > CommitDate: 2023-11-24 09:44:20 +0000
> > >
> > >     autofs: media: Don't include nosuid in the script
> > >     
> > >     We already have nosuid option in auto_master so no need to redefine it.
> > >     Also it's easier for a user to modify the auto_master configuration file
> > >     than the script (which shouldn't be modified).
> > >     
> > >     Sponsored by:   Beckhoff Automation GmbH & Co. KG
> > >     Differential Revision:  https://reviews.freebsd.org/D42492
> > >     Reviewed by:    rew
> > > ---
> > >  usr.sbin/autofs/autofs/special_media | 8 ++++----
> > >  1 file changed, 4 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/usr.sbin/autofs/autofs/special_media b/usr.sbin/autofs/autofs/special_media
> > > index d72ddddddb2e..33fa4544d028 100755
> > > --- a/usr.sbin/autofs/autofs/special_media
> > > +++ b/usr.sbin/autofs/autofs/special_media
> > > @@ -40,7 +40,7 @@ print_map_entry() {
> > >     case "${_fstype}" in
> > >     "exfat")
> > >         if [ -f "/usr/local/sbin/mount.exfat" ]; then
> > > -           echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype},nosuid   :/dev/${_p}"
> > > +           echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype}  :/dev/${_p}"
> > >         else
> > >             /usr/bin/logger -p info -t "special_media[$$]" \
> > >                 "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-exfat first"
> > > @@ -49,7 +49,7 @@ print_map_entry() {
> > >         ;;
> > >     "ntfs")
> > >         if [ -f "/usr/local/bin/ntfs-3g" ]; then
> > > -           echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid    :/dev/${_p}"
> > > +           echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype}   :/dev/${_p}"
> > >         else
> > >             /usr/bin/logger -p info -t "special_media[$$]" \
> > >                 "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-ntfs first"
> > > @@ -57,10 +57,10 @@ print_map_entry() {
> > >         fi
> > >         ;;
> > >     "ext2fs" | "msdosfs")
> > > -       echo "-fstype=${_fstype},nosuid,async   :/dev/${_p}"
> > > +       echo "-fstype=${_fstype},async  :/dev/${_p}"
> > >         ;;
> > >     *)
> > > -       echo "-fstype=${_fstype},nosuid :/dev/${_p}"
> > > +       echo "-fstype=${_fstype}    :/dev/${_p}"
> > >         ;;
> > >     esac
> > >  }
> > >  
> > >
> > >
> > >
> >
> >  
> 
> 
> -- 
> Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
> 
> 
> 

 
------=_Part_8141_1624612915.1700838022586
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Ah thanks. Didn't notice the remark in the commit message.<br>
&nbsp;
<p><strong>Van:</strong> Emmanuel Vadot &lt;manu@bidouilliste.com&gt;<br>
<strong>Datum:</strong> vrijdag, 24 november 2023 15:51<br>
<strong>Aan:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br>
<strong>CC:</strong> Emmanuel Vadot &lt;manu@FreeBSD.org&gt;, dev-commits-src-all@FreeBSD.org, src-committers@FreeBSD.org, dev-commits-src-main@FreeBSD.org<br>
<strong>Onderwerp:</strong> Re: git: 0b7c89c8c236 - main - autofs: media: Don't include nosuid in the script</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P"><br>
&nbsp;Hi,<br>
<br>
On Fri, 24 Nov 2023 15:47:16 +0100 (CET)<br>
Ronald Klop &lt;ronald-lists@klop.ws&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; Wouldn't this apply for a /usr/src/UPDATING or /usr/src/RELNOTES entry?<br>
&gt; As it might change default behaviour on a security measure.<br>
<br>
&nbsp;No it doesn't.<br>
&nbsp;As noted in the commit message nosuid is already present in<br>
auto_master, I'm just removing a duplicate here.<br>
<br>
&gt; Regards.<br>
&gt; Ronald.<br>
&gt;<br>
&gt; &nbsp;<br>
&gt; Van: Emmanuel Vadot &lt;manu@FreeBSD.org&gt;<br>
&gt; Datum: vrijdag, 24 november 2023 10:45<br>
&gt; Aan: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org<br>
&gt; Onderwerp: git: 0b7c89c8c236 - main - autofs: media: Don't include nosuid in the script<br>
&gt; &gt;<br>
&gt; &gt; The branch main has been updated by manu:<br>
&gt; &gt;<br>
&gt; &gt; URL: <a href="https://cgit.FreeBSD.org/src/commit/?id=0b7c89c8c236fcfabd1abd59c6b8274c7eb80f5e">https://cgit.FreeBSD.org/src/commit/?id=0b7c89c8c236fcfabd1abd59c6b8274c7eb80f5e</a><br>;
&gt; &gt;<br>
&gt; &gt; commit 0b7c89c8c236fcfabd1abd59c6b8274c7eb80f5e<br>
&gt; &gt; Author: &nbsp;&nbsp;&nbsp;&nbsp;Emmanuel Vadot &lt;manu@FreeBSD.org&gt;<br>
&gt; &gt; AuthorDate: 2023-11-07 09:42:53 +0000<br>
&gt; &gt; Commit: &nbsp;&nbsp;&nbsp;&nbsp;Emmanuel Vadot &lt;manu@FreeBSD.org&gt;<br>
&gt; &gt; CommitDate: 2023-11-24 09:44:20 +0000<br>
&gt; &gt;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;autofs: media: Don't include nosuid in the script<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;We already have nosuid option in auto_master so no need to redefine it.<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;Also it's easier for a user to modify the auto_master configuration file<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;than the script (which shouldn't be modified).<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;Sponsored by: &nbsp;&nbsp;Beckhoff Automation GmbH &amp; Co. KG<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;Differential Revision: &nbsp;<a href="https://reviews.freebsd.org/D42492">https://reviews.freebsd.org/D42492</a><br>;
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;Reviewed by: &nbsp;&nbsp;&nbsp;rew<br>
&gt; &gt; ---<br>
&gt; &gt; &nbsp;usr.sbin/autofs/autofs/special_media | 8 ++++----<br>
&gt; &gt; &nbsp;1 file changed, 4 insertions(+), 4 deletions(-)<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/usr.sbin/autofs/autofs/special_media b/usr.sbin/autofs/autofs/special_media<br>
&gt; &gt; index d72ddddddb2e..33fa4544d028 100755<br>
&gt; &gt; --- a/usr.sbin/autofs/autofs/special_media<br>
&gt; &gt; +++ b/usr.sbin/autofs/autofs/special_media<br>
&gt; &gt; @@ -40,7 +40,7 @@ print_map_entry() {<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;case "${_fstype}" in<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;"exfat")<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if [ -f "/usr/local/sbin/mount.exfat" ]; then<br>
&gt; &gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype},nosuid &nbsp;&nbsp;:/dev/${_p}"<br>
&gt; &gt; + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype} &nbsp;:/dev/${_p}"<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/bin/logger -p info -t "special_media[$$]" \<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-exfat first"<br>
&gt; &gt; @@ -49,7 +49,7 @@ print_map_entry() {<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;"ntfs")<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if [ -f "/usr/local/bin/ntfs-3g" ]; then<br>
&gt; &gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid &nbsp;&nbsp;&nbsp;:/dev/${_p}"<br>
&gt; &gt; + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype} &nbsp;&nbsp;:/dev/${_p}"<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/bin/logger -p info -t "special_media[$$]" \<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-ntfs first"<br>
&gt; &gt; @@ -57,10 +57,10 @@ print_map_entry() {<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fi<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;"ext2fs" | "msdosfs")<br>
&gt; &gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-fstype=${_fstype},nosuid,async &nbsp;&nbsp;:/dev/${_p}"<br>
&gt; &gt; + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-fstype=${_fstype},async &nbsp;:/dev/${_p}"<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;*)<br>
&gt; &gt; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-fstype=${_fstype},nosuid :/dev/${_p}"<br>
&gt; &gt; + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "-fstype=${_fstype} &nbsp;&nbsp;&nbsp;:/dev/${_p}"<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;esac<br>
&gt; &gt; &nbsp;}<br>
&gt; &gt; &nbsp;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &nbsp;<br>
<br>
<br>
--&nbsp;<br>
Emmanuel Vadot &lt;manu@bidouilliste.com&gt; &lt;manu@freebsd.org&gt;</div>

<hr></div>
</blockquote>
<br>
&nbsp;</body></html>
------=_Part_8141_1624612915.1700838022586--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?194935678.8142.1700838022590>