diff options
author | Paul Moore <paul@paul-moore.com> | 2024-07-15 21:22:51 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-08-12 14:49:37 -0400 |
commit | 711f5c5ce6c2c640c1b3b569ab2a8847be5ab21f (patch) | |
tree | b8dd4679b2798543254df05cdeee2a3c065c6b7c /security/security.c | |
parent | 924e19c39e8f0bbd581ab8a049f95a0ed02235b1 (diff) |
lsm: cleanup lsm_hooks.h
Some cleanup and style corrections for lsm_hooks.h.
* Drop the lsm_inode_alloc() extern declaration, it is not needed.
* Relocate lsm_get_xattr_slot() and extern variables in the file to
improve grouping of related objects.
* Don't use tabs to needlessly align structure fields.
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c index 338e0d243a3c..b316e6586be2 100644 --- a/security/security.c +++ b/security/security.c @@ -689,7 +689,7 @@ static int lsm_file_alloc(struct file *file) * * Returns 0, or -ENOMEM if memory can't be allocated. */ -int lsm_inode_alloc(struct inode *inode) +static int lsm_inode_alloc(struct inode *inode) { if (!lsm_inode_cache) { inode->i_security = NULL; |