Re: Bug#476577: corrected patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chuck Lever wrote:
> What if /etc/mtab is a symlink to a valid writable file that is not / 
> proc/mounts?  The test you introduce below will prevent that case from  
> working properly.

Note that util-linux mount does the same thing in this case, so this must
be an uncommon case.

umount.nfs also avoids writing to /etc/mtab if it is a symlink..

> Is there a security issue with creating a file in / when /proc isn't  
> mounted, or is this just an inconvenience?

The worse problem is that mount.nfs fails with a nonzero exit code if
/proc/ is mounted, since the fchmod of /proc/mounts fails.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux