diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2011-09-29 21:21:01 -0400 |
---|---|---|
committer | Casey Schaufler <cschaufler@cschaufler-intel.(none)> | 2011-10-12 17:26:07 -0400 |
commit | ce8a432197d9892689eb4896f690b9fe6b3de598 (patch) | |
tree | 09dff875df15be3a36f3e0dcb760d0064d4da935 /security/smack/smack_lsm.c | |
parent | 531f1d453ed8a8acee4015bd64e7bcc2eab939e4 (diff) |
Smack: Clean up comments
There are a number of comments in the Smack code that
are either malformed or include code. This patch cleans
them up.
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smack_lsm.c')
-rw-r--r-- | security/smack/smack_lsm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 2e71c3f445fc..6a8226541327 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -441,6 +441,12 @@ static int smack_sb_umount(struct vfsmount *mnt, int flags) | |||
441 | * BPRM hooks | 441 | * BPRM hooks |
442 | */ | 442 | */ |
443 | 443 | ||
444 | /** | ||
445 | * smack_bprm_set_creds - set creds for exec | ||
446 | * @bprm: the exec information | ||
447 | * | ||
448 | * Returns 0 if it gets a blob, -ENOMEM otherwise | ||
449 | */ | ||
444 | static int smack_bprm_set_creds(struct linux_binprm *bprm) | 450 | static int smack_bprm_set_creds(struct linux_binprm *bprm) |
445 | { | 451 | { |
446 | struct task_smack *tsp = bprm->cred->security; | 452 | struct task_smack *tsp = bprm->cred->security; |
@@ -844,7 +850,7 @@ static void smack_inode_post_setxattr(struct dentry *dentry, const char *name, | |||
844 | return; | 850 | return; |
845 | } | 851 | } |
846 | 852 | ||
847 | /* | 853 | /** |
848 | * smack_inode_getxattr - Smack check on getxattr | 854 | * smack_inode_getxattr - Smack check on getxattr |
849 | * @dentry: the object | 855 | * @dentry: the object |
850 | * @name: unused | 856 | * @name: unused |
@@ -861,7 +867,7 @@ static int smack_inode_getxattr(struct dentry *dentry, const char *name) | |||
861 | return smk_curacc(smk_of_inode(dentry->d_inode), MAY_READ, &ad); | 867 | return smk_curacc(smk_of_inode(dentry->d_inode), MAY_READ, &ad); |
862 | } | 868 | } |
863 | 869 | ||
864 | /* | 870 | /** |
865 | * smack_inode_removexattr - Smack check on removexattr | 871 | * smack_inode_removexattr - Smack check on removexattr |
866 | * @dentry: the object | 872 | * @dentry: the object |
867 | * @name: name of the attribute | 873 | * @name: name of the attribute |