diff options
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 35ac8d9d4739..14df373ff2ca 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -228,10 +228,10 @@ int security_sb_remount(struct super_block *sb, void *data); | |||
228 | int security_sb_kern_mount(struct super_block *sb, int flags, void *data); | 228 | int security_sb_kern_mount(struct super_block *sb, int flags, void *data); |
229 | int security_sb_show_options(struct seq_file *m, struct super_block *sb); | 229 | int security_sb_show_options(struct seq_file *m, struct super_block *sb); |
230 | int security_sb_statfs(struct dentry *dentry); | 230 | int security_sb_statfs(struct dentry *dentry); |
231 | int security_sb_mount(const char *dev_name, struct path *path, | 231 | int security_sb_mount(const char *dev_name, const struct path *path, |
232 | const char *type, unsigned long flags, void *data); | 232 | const char *type, unsigned long flags, void *data); |
233 | int security_sb_umount(struct vfsmount *mnt, int flags); | 233 | int security_sb_umount(struct vfsmount *mnt, int flags); |
234 | int security_sb_pivotroot(struct path *old_path, struct path *new_path); | 234 | int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); |
235 | int security_sb_set_mnt_opts(struct super_block *sb, | 235 | int security_sb_set_mnt_opts(struct super_block *sb, |
236 | struct security_mnt_opts *opts, | 236 | struct security_mnt_opts *opts, |
237 | unsigned long kern_flags, | 237 | unsigned long kern_flags, |
@@ -544,7 +544,7 @@ static inline int security_sb_statfs(struct dentry *dentry) | |||
544 | return 0; | 544 | return 0; |
545 | } | 545 | } |
546 | 546 | ||
547 | static inline int security_sb_mount(const char *dev_name, struct path *path, | 547 | static inline int security_sb_mount(const char *dev_name, const struct path *path, |
548 | const char *type, unsigned long flags, | 548 | const char *type, unsigned long flags, |
549 | void *data) | 549 | void *data) |
550 | { | 550 | { |
@@ -556,8 +556,8 @@ static inline int security_sb_umount(struct vfsmount *mnt, int flags) | |||
556 | return 0; | 556 | return 0; |
557 | } | 557 | } |
558 | 558 | ||
559 | static inline int security_sb_pivotroot(struct path *old_path, | 559 | static inline int security_sb_pivotroot(const struct path *old_path, |
560 | struct path *new_path) | 560 | const struct path *new_path) |
561 | { | 561 | { |
562 | return 0; | 562 | return 0; |
563 | } | 563 | } |
@@ -1456,83 +1456,83 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi | |||
1456 | #endif /* CONFIG_SECURITY_NETWORK_XFRM */ | 1456 | #endif /* CONFIG_SECURITY_NETWORK_XFRM */ |
1457 | 1457 | ||
1458 | #ifdef CONFIG_SECURITY_PATH | 1458 | #ifdef CONFIG_SECURITY_PATH |
1459 | int security_path_unlink(struct path *dir, struct dentry *dentry); | 1459 | int security_path_unlink(const struct path *dir, struct dentry *dentry); |
1460 | int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode); | 1460 | int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode); |
1461 | int security_path_rmdir(struct path *dir, struct dentry *dentry); | 1461 | int security_path_rmdir(const struct path *dir, struct dentry *dentry); |
1462 | int security_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode, | 1462 | int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, |
1463 | unsigned int dev); | 1463 | unsigned int dev); |
1464 | int security_path_truncate(struct path *path); | 1464 | int security_path_truncate(const struct path *path); |
1465 | int security_path_symlink(struct path *dir, struct dentry *dentry, | 1465 | int security_path_symlink(const struct path *dir, struct dentry *dentry, |
1466 | const char *old_name); | 1466 | const char *old_name); |
1467 | int security_path_link(struct dentry *old_dentry, struct path *new_dir, | 1467 | int security_path_link(struct dentry *old_dentry, const struct path *new_dir, |
1468 | struct dentry *new_dentry); | 1468 | struct dentry *new_dentry); |
1469 | int security_path_rename(struct path *old_dir, struct dentry *old_dentry, | 1469 | int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, |
1470 | struct path *new_dir, struct dentry *new_dentry, | 1470 | const struct path *new_dir, struct dentry *new_dentry, |
1471 | unsigned int flags); | 1471 | unsigned int flags); |
1472 | int security_path_chmod(struct path *path, umode_t mode); | 1472 | int security_path_chmod(const struct path *path, umode_t mode); |
1473 | int security_path_chown(struct path *path, kuid_t uid, kgid_t gid); | 1473 | int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); |
1474 | int security_path_chroot(struct path *path); | 1474 | int security_path_chroot(const struct path *path); |
1475 | #else /* CONFIG_SECURITY_PATH */ | 1475 | #else /* CONFIG_SECURITY_PATH */ |
1476 | static inline int security_path_unlink(struct path *dir, struct dentry *dentry) | 1476 | static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) |
1477 | { | 1477 | { |
1478 | return 0; | 1478 | return 0; |
1479 | } | 1479 | } |
1480 | 1480 | ||
1481 | static inline int security_path_mkdir(struct path *dir, struct dentry *dentry, | 1481 | static inline int security_path_mkdir(const struct path *dir, struct dentry *dentry, |
1482 | umode_t mode) | 1482 | umode_t mode) |
1483 | { | 1483 | { |
1484 | return 0; | 1484 | return 0; |
1485 | } | 1485 | } |
1486 | 1486 | ||
1487 | static inline int security_path_rmdir(struct path *dir, struct dentry *dentry) | 1487 | static inline int security_path_rmdir(const struct path *dir, struct dentry *dentry) |
1488 | { | 1488 | { |
1489 | return 0; | 1489 | return 0; |
1490 | } | 1490 | } |
1491 | 1491 | ||
1492 | static inline int security_path_mknod(struct path *dir, struct dentry *dentry, | 1492 | static inline int security_path_mknod(const struct path *dir, struct dentry *dentry, |
1493 | umode_t mode, unsigned int dev) | 1493 | umode_t mode, unsigned int dev) |
1494 | { | 1494 | { |
1495 | return 0; | 1495 | return 0; |
1496 | } | 1496 | } |
1497 | 1497 | ||
1498 | static inline int security_path_truncate(struct path *path) | 1498 | static inline int security_path_truncate(const struct path *path) |
1499 | { | 1499 | { |
1500 | return 0; | 1500 | return 0; |
1501 | } | 1501 | } |
1502 | 1502 | ||
1503 | static inline int security_path_symlink(struct path *dir, struct dentry *dentry, | 1503 | static inline int security_path_symlink(const struct path *dir, struct dentry *dentry, |
1504 | const char *old_name) | 1504 | const char *old_name) |
1505 | { | 1505 | { |
1506 | return 0; | 1506 | return 0; |
1507 | } | 1507 | } |
1508 | 1508 | ||
1509 | static inline int security_path_link(struct dentry *old_dentry, | 1509 | static inline int security_path_link(struct dentry *old_dentry, |
1510 | struct path *new_dir, | 1510 | const struct path *new_dir, |
1511 | struct dentry *new_dentry) | 1511 | struct dentry *new_dentry) |
1512 | { | 1512 | { |
1513 | return 0; | 1513 | return 0; |
1514 | } | 1514 | } |
1515 | 1515 | ||
1516 | static inline int security_path_rename(struct path *old_dir, | 1516 | static inline int security_path_rename(const struct path *old_dir, |
1517 | struct dentry *old_dentry, | 1517 | struct dentry *old_dentry, |
1518 | struct path *new_dir, | 1518 | const struct path *new_dir, |
1519 | struct dentry *new_dentry, | 1519 | struct dentry *new_dentry, |
1520 | unsigned int flags) | 1520 | unsigned int flags) |
1521 | { | 1521 | { |
1522 | return 0; | 1522 | return 0; |
1523 | } | 1523 | } |
1524 | 1524 | ||
1525 | static inline int security_path_chmod(struct path *path, umode_t mode) | 1525 | static inline int security_path_chmod(const struct path *path, umode_t mode) |
1526 | { | 1526 | { |
1527 | return 0; | 1527 | return 0; |
1528 | } | 1528 | } |
1529 | 1529 | ||
1530 | static inline int security_path_chown(struct path *path, kuid_t uid, kgid_t gid) | 1530 | static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) |
1531 | { | 1531 | { |
1532 | return 0; | 1532 | return 0; |
1533 | } | 1533 | } |
1534 | 1534 | ||
1535 | static inline int security_path_chroot(struct path *path) | 1535 | static inline int security_path_chroot(const struct path *path) |
1536 | { | 1536 | { |
1537 | return 0; | 1537 | return 0; |
1538 | } | 1538 | } |