Bug 198995 - Too many capabilities on virtual filesystems
Summary: Too many capabilities on virtual filesystems
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-15 13:23 UTC by Need Real Name
Modified: 2015-01-04 22:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-12 00:14:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Linux Kernel 6904 0 None None None Never

Description Need Real Name 2006-07-15 13:23:06 UTC
This is a dupe of debian bug 378280:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378280

> Hi,
> 
> while playing around with the latest kernel exploit
> 
> http://lists.grok.org.uk/pipermail/full-disclosure/2006-July/047907.html
> 
> i wondered why the kernel virtual file systems (/sys, /proc) have
> pretty much every capability. Why do those filesystems need dev, exec,
> suid capabilities?
> 
> Unless there is a good reason please mount them noexec,nodev,nosuid.
> 
> MfG

Comment 1 Phil Knirsch 2006-07-18 12:05:48 UTC
/etc/fstab is written during installation, so reassigning to anaconda.

Read ya, Phil

Comment 2 Jeremy Katz 2006-07-19 18:51:40 UTC
Bill -- thoughts?

Comment 3 Bill Nottingham 2006-07-19 20:06:41 UTC
Set the default in the kernel, if it's not needed....

Comment 4 Dave Jones 2006-07-26 02:53:46 UTC
this is much better dealt with upstream than in various distro bug trackers.
Please file a bug in http://bugzilla.kernel.org, or post to
linux-kernel.org


Comment 5 Need Real Name 2006-07-26 06:20:50 UTC
Isn't UPSTREAM for bugs where the bug has already been reported upstream?

Oh well, reported.

Comment 6 Need Real Name 2006-09-09 10:47:18 UTC
This bug has been downstreamed, the changes need to be made by the vendor in
/etc/fstab

Comment 7 Bill Nottingham 2006-09-11 14:32:17 UTC
initscripts does not write /etc/fstab.

Comment 8 Jeremy Katz 2006-09-11 20:02:55 UTC
It is *NOT* the job of every single utility that might ever create a filesystem
(or mount one) to know this sort of magic.

This needs to be done in the kernel or there's no way that it will ever be done
consistently.

Comment 9 Dave Jones 2006-09-12 00:14:36 UTC
Turns out this is fixed in .18rc, so FC5 will pick this up when we rebase.

int proc_fill_super(struct super_block *s, void *data, int silent)
{
    struct inode * root_inode;
    s->s_flags |= MS_NODIRATIME | MS_NOSUID | MS_NOEXEC;




Note You need to log in before you can comment on or make changes to this bug.