aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-04-07 15:14:39 -0400
committerJames Morris <jmorris@namei.org>2010-04-11 22:18:31 -0400
commit3db291017753e539af64c8bab373785f34e43ed2 (patch)
treee6759c7dea1774465b6bf2860a0c2f283c0b34fa /include/linux/security.h
parent82dab10453d65ad9ca551de5b8925673ca05c7e9 (diff)
security: remove dead hook sb_post_addmount
Unused hook. Remove. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r--include/linux/security.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index 338617a50fa3..a42d733086a1 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -272,12 +272,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
272 * @mnt contains the mounted file system. 272 * @mnt contains the mounted file system.
273 * @flags contains the unmount flags, e.g. MNT_FORCE. 273 * @flags contains the unmount flags, e.g. MNT_FORCE.
274 * Return 0 if permission is granted. 274 * Return 0 if permission is granted.
275 * @sb_post_addmount:
276 * Update the security module's state when a filesystem is mounted.
277 * This hook is called any time a mount is successfully grafetd to
278 * the tree.
279 * @mnt contains the mounted filesystem.
280 * @mountpoint contains the path for the mount point.
281 * @sb_pivotroot: 275 * @sb_pivotroot:
282 * Check permission before pivoting the root filesystem. 276 * Check permission before pivoting the root filesystem.
283 * @old_path contains the path for the new location of the current root (put_old). 277 * @old_path contains the path for the new location of the current root (put_old).
@@ -1462,8 +1456,6 @@ struct security_operations {
1462 int (*sb_mount) (char *dev_name, struct path *path, 1456 int (*sb_mount) (char *dev_name, struct path *path,
1463 char *type, unsigned long flags, void *data); 1457 char *type, unsigned long flags, void *data);
1464 int (*sb_umount) (struct vfsmount *mnt, int flags); 1458 int (*sb_umount) (struct vfsmount *mnt, int flags);
1465 void (*sb_post_addmount) (struct vfsmount *mnt,
1466 struct path *mountpoint);
1467 int (*sb_pivotroot) (struct path *old_path, 1459 int (*sb_pivotroot) (struct path *old_path,
1468 struct path *new_path); 1460 struct path *new_path);
1469 void (*sb_post_pivotroot) (struct path *old_path, 1461 void (*sb_post_pivotroot) (struct path *old_path,
@@ -1756,7 +1748,6 @@ int security_sb_statfs(struct dentry *dentry);
1756int security_sb_mount(char *dev_name, struct path *path, 1748int security_sb_mount(char *dev_name, struct path *path,
1757 char *type, unsigned long flags, void *data); 1749 char *type, unsigned long flags, void *data);
1758int security_sb_umount(struct vfsmount *mnt, int flags); 1750int security_sb_umount(struct vfsmount *mnt, int flags);
1759void security_sb_post_addmount(struct vfsmount *mnt, struct path *mountpoint);
1760int security_sb_pivotroot(struct path *old_path, struct path *new_path); 1751int security_sb_pivotroot(struct path *old_path, struct path *new_path);
1761void security_sb_post_pivotroot(struct path *old_path, struct path *new_path); 1752void security_sb_post_pivotroot(struct path *old_path, struct path *new_path);
1762int security_sb_set_mnt_opts(struct super_block *sb, struct security_mnt_opts *opts); 1753int security_sb_set_mnt_opts(struct super_block *sb, struct security_mnt_opts *opts);
@@ -2072,10 +2063,6 @@ static inline int security_sb_umount(struct vfsmount *mnt, int flags)
2072 return 0; 2063 return 0;
2073} 2064}
2074 2065
2075static inline void security_sb_post_addmount(struct vfsmount *mnt,
2076 struct path *mountpoint)
2077{ }
2078
2079static inline int security_sb_pivotroot(struct path *old_path, 2066static inline int security_sb_pivotroot(struct path *old_path,
2080 struct path *new_path) 2067 struct path *new_path)
2081{ 2068{