lsm: remove obsoleted comments for security hooks
authorGaosheng Cui <cuigaosheng1@huawei.com>
Tue, 25 Oct 2022 12:57:44 +0000 (20:57 +0800)
committerPaul Moore <paul@paul-moore.com>
Tue, 25 Oct 2022 23:57:47 +0000 (19:57 -0400)
Remove the following obsoleted comments for security hooks:

1. sb_copy_data, the hook function has been removed since
commit 5b4002391153 ("LSM: turn sb_eat_lsm_opts() into a method").

2. sb_parse_opts_str, the hook function has been removed since
commit 757cbe597fe8 ("LSM: new method: ->sb_add_mnt_opt()").

They are obsoleted comments, so remove them.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: subj line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/lsm_hooks.h

index 4ec80b96c22e778f951698a0c1110d20e50bc634..9a7e69aff3d1fc7cc9b460debe133c9e7f31934c 100644 (file)
  *     @flags contains the mount flags.
  *     @data contains the filesystem-specific data.
  *     Return 0 if permission is granted.
- * @sb_copy_data:
- *     Allow mount option data to be copied prior to parsing by the filesystem,
- *     so that the security module can extract security-specific mount
- *     options cleanly (a filesystem may modify the data e.g. with strsep()).
- *     This also allows the original mount data to be stripped of security-
- *     specific options to avoid having to make filesystems aware of them.
- *     @orig the original mount data copied from userspace.
- *     @copy copied data which will be passed to the security module.
- *     Returns 0 if the copy was successful.
  * @sb_mnt_opts_compat:
  *     Determine if the new mount options in @mnt_opts are allowed given
  *     the existing mounted filesystem at @sb.
  *     Copy all security options from a given superblock to another
  *     @oldsb old superblock which contain information to clone
  *     @newsb new superblock which needs filled in
- * @sb_parse_opts_str:
- *     Parse a string of security data filling in the opts structure
- *     @options string containing all mount options known by the LSM
- *     @opts binary data structure usable by the LSM
  * @move_mount:
  *     Check permission before a mount is moved.
  *     @from_path indicates the mount that is going to be moved.