Commit 65b5db50 authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by David Woodhouse

[PATCH] inode_mknod parameters

These security_ops are declared like

        int (*inode_mknod) (struct inode *dir, struct dentry *dentry,
                            int mode, dev_t dev);

with a mode and a dev_t argument.

But the users mistakenly had major, minor instead of mode, dev.
parent 70c8bc2b
......@@ -340,13 +340,13 @@ static int cap_inode_rmdir (struct inode *inode, struct dentry *dentry)
}
static int cap_inode_mknod (struct inode *inode, struct dentry *dentry,
int major, dev_t minor)
int mode, dev_t dev)
{
return 0;
}
static void cap_inode_post_mknod (struct inode *inode, struct dentry *dentry,
int major, dev_t minor)
int mode, dev_t dev)
{
return;
}
......
......@@ -240,13 +240,13 @@ static int dummy_inode_rmdir (struct inode *inode, struct dentry *dentry)
}
static int dummy_inode_mknod (struct inode *inode, struct dentry *dentry,
int major, dev_t minor)
int mode, dev_t dev)
{
return 0;
}
static void dummy_inode_post_mknod (struct inode *inode, struct dentry *dentry,
int major, dev_t minor)
int mode, dev_t dev)
{
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment