lkml.org 
[lkml]   [2014]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 06/13] vfs: add whiteout support
From
Date
Miklos Szeredi wrote:
> +int vfs_whiteout(struct inode *dir, struct dentry *dentry)
> +{
> + int error = may_create(dir, dentry);
> + if (error)
> + return error;
> +
> + if (!dir->i_op->mknod)
> + return -EPERM;
> +
> + return dir->i_op->mknod(dir, dentry,
> + S_IFCHR | WHITEOUT_MODE, WHITEOUT_DEV);
> +}
> +EXPORT_SYMBOL(vfs_whiteout);

May I verify which/how security_path_*() hooks are called for vfs_whiteout() ?
(Please include linux-security-module@vger.kernel.org when making VFS changes.
TOMOYO and AppArmor don't want to be left behind again.)


\
 
 \ /
  Last update: 2014-05-24 11:01    [W:0.629 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site