aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2009-05-26 01:18:07 -0400
committerJames Morris <jmorris@namei.org>2009-05-27 21:57:09 -0400
commit13b297d943828c4594527a2bd9c30ecd04e37886 (patch)
tree9a4e7ea9e0f161f5a3edecfa8300d2677b24cfd9
parent14dba5331b90c20588ae6504fea8049c7283028d (diff)
smack: Remove redundant initialization.
We don't need to explicitly initialize to cap_* because it will be filled by security_fixup_ops(). Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: James Morris <jmorris@namei.org>
-rw-r--r--security/smack/smack_lsm.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 0d030b4513c8..0023182078c7 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -3034,15 +3034,7 @@ struct security_operations smack_ops = {
3034 3034
3035 .ptrace_may_access = smack_ptrace_may_access, 3035 .ptrace_may_access = smack_ptrace_may_access,
3036 .ptrace_traceme = smack_ptrace_traceme, 3036 .ptrace_traceme = smack_ptrace_traceme,
3037 .capget = cap_capget,
3038 .capset = cap_capset,
3039 .capable = cap_capable,
3040 .syslog = smack_syslog, 3037 .syslog = smack_syslog,
3041 .settime = cap_settime,
3042 .vm_enough_memory = cap_vm_enough_memory,
3043
3044 .bprm_set_creds = cap_bprm_set_creds,
3045 .bprm_secureexec = cap_bprm_secureexec,
3046 3038
3047 .sb_alloc_security = smack_sb_alloc_security, 3039 .sb_alloc_security = smack_sb_alloc_security,
3048 .sb_free_security = smack_sb_free_security, 3040 .sb_free_security = smack_sb_free_security,
@@ -3066,8 +3058,6 @@ struct security_operations smack_ops = {
3066 .inode_post_setxattr = smack_inode_post_setxattr, 3058 .inode_post_setxattr = smack_inode_post_setxattr,
3067 .inode_getxattr = smack_inode_getxattr, 3059 .inode_getxattr = smack_inode_getxattr,
3068 .inode_removexattr = smack_inode_removexattr, 3060 .inode_removexattr = smack_inode_removexattr,
3069 .inode_need_killpriv = cap_inode_need_killpriv,
3070 .inode_killpriv = cap_inode_killpriv,
3071 .inode_getsecurity = smack_inode_getsecurity, 3061 .inode_getsecurity = smack_inode_getsecurity,
3072 .inode_setsecurity = smack_inode_setsecurity, 3062 .inode_setsecurity = smack_inode_setsecurity,
3073 .inode_listsecurity = smack_inode_listsecurity, 3063 .inode_listsecurity = smack_inode_listsecurity,
@@ -3088,7 +3078,6 @@ struct security_operations smack_ops = {
3088 .cred_commit = smack_cred_commit, 3078 .cred_commit = smack_cred_commit,
3089 .kernel_act_as = smack_kernel_act_as, 3079 .kernel_act_as = smack_kernel_act_as,
3090 .kernel_create_files_as = smack_kernel_create_files_as, 3080 .kernel_create_files_as = smack_kernel_create_files_as,
3091 .task_fix_setuid = cap_task_fix_setuid,
3092 .task_setpgid = smack_task_setpgid, 3081 .task_setpgid = smack_task_setpgid,
3093 .task_getpgid = smack_task_getpgid, 3082 .task_getpgid = smack_task_getpgid,
3094 .task_getsid = smack_task_getsid, 3083 .task_getsid = smack_task_getsid,
@@ -3102,7 +3091,6 @@ struct security_operations smack_ops = {
3102 .task_kill = smack_task_kill, 3091 .task_kill = smack_task_kill,
3103 .task_wait = smack_task_wait, 3092 .task_wait = smack_task_wait,
3104 .task_to_inode = smack_task_to_inode, 3093 .task_to_inode = smack_task_to_inode,
3105 .task_prctl = cap_task_prctl,
3106 3094
3107 .ipc_permission = smack_ipc_permission, 3095 .ipc_permission = smack_ipc_permission,
3108 .ipc_getsecid = smack_ipc_getsecid, 3096 .ipc_getsecid = smack_ipc_getsecid,
@@ -3129,9 +3117,6 @@ struct security_operations smack_ops = {
3129 .sem_semctl = smack_sem_semctl, 3117 .sem_semctl = smack_sem_semctl,
3130 .sem_semop = smack_sem_semop, 3118 .sem_semop = smack_sem_semop,
3131 3119
3132 .netlink_send = cap_netlink_send,
3133 .netlink_recv = cap_netlink_recv,
3134
3135 .d_instantiate = smack_d_instantiate, 3120 .d_instantiate = smack_d_instantiate,
3136 3121
3137 .getprocattr = smack_getprocattr, 3122 .getprocattr = smack_getprocattr,