aboutsummaryrefslogtreecommitdiff
path: root/sound/atmel
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2012-08-09 16:47:21 +0100
committerJohn Rigby <john.rigby@linaro.org>2012-08-15 23:46:27 -0600
commit40c80f09ec3ca6f4d5ed87017eaee4254b1ad768 (patch)
tree0f3349650e2d4ec7bd4e0ba1cc2e02be38f2a83d /sound/atmel
parent7d9db60a6490dae9e643914700b72e731492d532 (diff)
overlayfs: copy up i_uid/i_gid from the underlying inode
YAMA et al rely on on i_uid/i_gid to be populated in order to perform their checks. While these really cannot be guarenteed as the underlying filesystem may not even have the concept, they are expected to be filled when possible. To quote Al Viro: "Ideally, yes, we'd want to have ->i_uid used only by fs-specific code and helpers used by that fs (including those that are implicit defaults). [...] In practice we have enough places where uid/gid is used directly to make setting them practically a requirement - places like /proc/<pid>/ can get away with not doing that, but only because shitloads of syscalls are not allowed on those anyway, permissions or no permissions. In anything general-purpose you really need to set it." Copy up the underlying filesystem information into the overlayfs inode when we create it. BugLink: http://bugs.launchpad.net/bugs/944386 Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'sound/atmel')
0 files changed, 0 insertions, 0 deletions