summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
910f4ec)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-extern struct dentry *securityfs_create_file(const char *name, mode_t mode,
+extern struct dentry *securityfs_create_file(const char *name, umode_t mode,
struct dentry *parent, void *data,
const struct file_operations *fops);
extern struct dentry *securityfs_create_dir(const char *name, struct dentry *parent);
struct dentry *parent, void *data,
const struct file_operations *fops);
extern struct dentry *securityfs_create_dir(const char *name, struct dentry *parent);
}
static inline struct dentry *securityfs_create_file(const char *name,
}
static inline struct dentry *securityfs_create_file(const char *name,
struct dentry *parent,
void *data,
const struct file_operations *fops)
struct dentry *parent,
void *data,
const struct file_operations *fops)
*
* Used aafs_remove to remove entries created with this fn.
*/
*
* Used aafs_remove to remove entries created with this fn.
*/
-static int __init aafs_create(const char *name, int mask,
+static int __init aafs_create(const char *name, umode_t mask,
const struct file_operations *fops)
{
struct dentry *dentry;
const struct file_operations *fops)
{
struct dentry *dentry;
.llseek = noop_llseek,
};
.llseek = noop_llseek,
};
-static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev)
+static struct inode *get_inode(struct super_block *sb, umode_t mode, dev_t dev)
{
struct inode *inode = new_inode(sb);
{
struct inode *inode = new_inode(sb);
/* SMP-safe */
static int mknod(struct inode *dir, struct dentry *dentry,
/* SMP-safe */
static int mknod(struct inode *dir, struct dentry *dentry,
+ umode_t mode, dev_t dev)
{
struct inode *inode;
int error = -ENOMEM;
{
struct inode *inode;
int error = -ENOMEM;
-static int mkdir(struct inode *dir, struct dentry *dentry, int mode)
+static int mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
-static int create(struct inode *dir, struct dentry *dentry, int mode)
+static int create(struct inode *dir, struct dentry *dentry, umode_t mode)
{
mode = (mode & S_IALLUGO) | S_IFREG;
return mknod(dir, dentry, mode, 0);
{
mode = (mode & S_IALLUGO) | S_IFREG;
return mknod(dir, dentry, mode, 0);
.kill_sb = kill_litter_super,
};
.kill_sb = kill_litter_super,
};
-static int create_by_name(const char *name, mode_t mode,
+static int create_by_name(const char *name, umode_t mode,
struct dentry *parent,
struct dentry **dentry)
{
struct dentry *parent,
struct dentry **dentry)
{
* If securityfs is not enabled in the kernel, the value %-ENODEV is
* returned.
*/
* If securityfs is not enabled in the kernel, the value %-ENODEV is
* returned.
*/
-struct dentry *securityfs_create_file(const char *name, mode_t mode,
+struct dentry *securityfs_create_file(const char *name, umode_t mode,
struct dentry *parent, void *data,
const struct file_operations *fops)
{
struct dentry *parent, void *data,
const struct file_operations *fops)
{
-static void __init tomoyo_create_entry(const char *name, const mode_t mode,
+static void __init tomoyo_create_entry(const char *name, const umode_t mode,
struct dentry *parent, const u8 key)
{
securityfs_create_file(name, mode, parent, ((u8 *) NULL) + key,
struct dentry *parent, const u8 key)
{
securityfs_create_file(name, mode, parent, ((u8 *) NULL) + key,