lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1b3c733f0412e214042566bac2c3f3e6@hadoop.ru>
Date:	Wed, 14 Dec 2011 19:34:50 +0400
From:	Vitaly Kuznetsov <vitty@...linux.ru>
To:	Greg Kroah-Hartman <gregkh@...e.de>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] sysfs: change permissions for /sys from 0755 to 0555

There is a misleading difference between /proc and /sys permissions, 
/proc is 0555 and /sys is 0755. But
as it is impossible to create or unlink something in /sys it would be 
nice to have same permissions.

Signed-off-by: Vitaly Kuznetsov <vitty@...linux.ru>
---
  fs/sysfs/mount.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index 4974995..9d56fdd 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -36,7 +36,7 @@ struct sysfs_dirent sysfs_root = {
         .s_name         = "",
         .s_count        = ATOMIC_INIT(1),
         .s_flags        = SYSFS_DIR,
-       .s_mode         = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO,
+       .s_mode         = S_IFDIR | S_IRUGO | S_IXUGO,
         .s_ino          = 1,
  };

-- 
1.7.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ