oss-sec mailing list archives

Re: Suid mount helpers fail to anticipate RLIMIT_FSIZE


From: Ludwig Nussel <ludwig.nussel () suse de>
Date: Fri, 4 Mar 2011 07:35:33 +0100

Dan Rosenberg wrote:
One more option is to replace /etc/mtab regular file with a symlink to
/proc/mounts, thus making any /etc/mtab editing unneeded.

This is a very good point.  I'm not sure why /etc/mtab exists anymore
given /proc/mounts is a more reliable source for this information.

/proc/mounts doesn't store options like user=. So replacing /etc/mtab
with a symlink wasn't feasible in general. util-linux recently
introduced /dev/.mount/utab which stores the missing information.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)


Current thread: