lkml.org 
[lkml]   [2016]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[git pull] vfs.git#work.const-path
struct path is passed by reference to a bunch of Linux S&M methods; in
theory, there's nothing to stop them from modifying the damn thing and
LSM community being what it is, sooner or later some enterprising soul
is going to decide that it's a good idea. Let's remove the temptation
and constify all of those...

The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca:

Linux 4.6-rc1 (2016-03-26 16:03:24 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.const-path

for you to fetch changes up to 81cd8896a64cc34bd59f097fa619b11ab40ca7a6:

constify ima_d_path() (2016-03-28 00:47:52 -0400)

----------------------------------------------------------------
Al Viro (18):
[apparmor] constify struct path * in a bunch of helpers
constify security_path_truncate()
constify vfs_truncate()
apparmor_path_truncate(): path->mnt is never NULL
tomoyo: constify assorted struct path *
constify chown_common/security_path_chown
constify security_sb_mount()
constify chmod_common/security_path_chmod
apparmor: new helper - common_path_perm()
apparmor: constify aa_path_link()
apparmor: constify common_perm_...()
constify security_path_{unlink,rmdir}
constify security_path_{mkdir,mknod,symlink}
apparmor: remove useless checks for NULL ->mnt
constify security_path_{link,rename}
constify security_path_chroot()
constify security_sb_pivotroot()
constify ima_d_path()

fs/namei.c | 2 +-
fs/open.c | 6 +--
include/linux/fs.h | 2 +-
include/linux/lsm_hooks.h | 28 +++++++-------
include/linux/security.h | 58 ++++++++++++++--------------
net/unix/af_unix.c | 2 +-
security/apparmor/file.c | 4 +-
security/apparmor/include/file.h | 4 +-
security/apparmor/include/path.h | 2 +-
security/apparmor/lsm.c | 83 +++++++++++++++-------------------------
security/apparmor/path.c | 8 ++--
security/integrity/ima/ima.h | 2 +-
security/integrity/ima/ima_api.c | 2 +-
security/security.c | 28 +++++++-------
security/selinux/hooks.c | 2 +-
security/tomoyo/common.h | 12 +++---
security/tomoyo/file.c | 10 ++---
security/tomoyo/mount.c | 4 +-
security/tomoyo/tomoyo.c | 28 +++++++-------
19 files changed, 132 insertions(+), 155 deletions(-)

\
 
 \ /
  Last update: 2016-05-18 00:01    [W:0.155 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site