* Leftover info for sb_copy_data and sb_parse_opts_str in include/linux/lsm_hooks.h
@ 2022-02-01 16:50 Igor Zhbanov
2022-02-01 17:05 ` Casey Schaufler
0 siblings, 1 reply; 3+ messages in thread
From: Igor Zhbanov @ 2022-02-01 16:50 UTC (permalink / raw)
To: linux-security-module
Hi!
There are no more sb_copy_data and sb_parse_opts_str LSM hooks,
but there is still documentation comments in include/linux/lsm_hooks.h.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Leftover info for sb_copy_data and sb_parse_opts_str in include/linux/lsm_hooks.h
2022-02-01 16:50 Leftover info for sb_copy_data and sb_parse_opts_str in include/linux/lsm_hooks.h Igor Zhbanov
@ 2022-02-01 17:05 ` Casey Schaufler
2022-02-01 20:44 ` [PATCH] lsm: Remove stale info about sb_copy_data and sb_parse_opts_str Igor Zhbanov
0 siblings, 1 reply; 3+ messages in thread
From: Casey Schaufler @ 2022-02-01 17:05 UTC (permalink / raw)
To: Igor Zhbanov, linux-security-module
On 2/1/2022 8:50 AM, Igor Zhbanov wrote:
> Hi!
>
> There are no more sb_copy_data and sb_parse_opts_str LSM hooks,
> but there is still documentation comments in include/linux/lsm_hooks.h.
You're right. A patch would be welcome.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] lsm: Remove stale info about sb_copy_data and sb_parse_opts_str
2022-02-01 17:05 ` Casey Schaufler
@ 2022-02-01 20:44 ` Igor Zhbanov
0 siblings, 0 replies; 3+ messages in thread
From: Igor Zhbanov @ 2022-02-01 20:44 UTC (permalink / raw)
To: Casey Schaufler, linux-security-module
Remove info about deleted LSM hooks from include/linux/lsm_hooks.h.
Signed-off-by: Igor Zhbanov <izh1979@gmail.com>
---
include/linux/lsm_hooks.h | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 3bf5c658bc44..1f777e3c2ad3 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -136,15 +136,6 @@
* @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.
@@ -180,10 +171,6 @@
* 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.
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-01 20:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 16:50 Leftover info for sb_copy_data and sb_parse_opts_str in include/linux/lsm_hooks.h Igor Zhbanov
2022-02-01 17:05 ` Casey Schaufler
2022-02-01 20:44 ` [PATCH] lsm: Remove stale info about sb_copy_data and sb_parse_opts_str Igor Zhbanov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.