diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -567,14 +567,6 @@ static int newary(struct ipc_namespace *ns, struct ipc_params *params) | |||
567 | /* | 567 | /* |
568 | * Called with sem_ids.rwsem and ipcp locked. | 568 | * Called with sem_ids.rwsem and ipcp locked. |
569 | */ | 569 | */ |
570 | static inline int sem_security(struct kern_ipc_perm *ipcp, int semflg) | ||
571 | { | ||
572 | return security_sem_associate(ipcp, semflg); | ||
573 | } | ||
574 | |||
575 | /* | ||
576 | * Called with sem_ids.rwsem and ipcp locked. | ||
577 | */ | ||
578 | static inline int sem_more_checks(struct kern_ipc_perm *ipcp, | 570 | static inline int sem_more_checks(struct kern_ipc_perm *ipcp, |
579 | struct ipc_params *params) | 571 | struct ipc_params *params) |
580 | { | 572 | { |
@@ -592,7 +584,7 @@ SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg) | |||
592 | struct ipc_namespace *ns; | 584 | struct ipc_namespace *ns; |
593 | static const struct ipc_ops sem_ops = { | 585 | static const struct ipc_ops sem_ops = { |
594 | .getnew = newary, | 586 | .getnew = newary, |
595 | .associate = sem_security, | 587 | .associate = security_sem_associate, |
596 | .more_checks = sem_more_checks, | 588 | .more_checks = sem_more_checks, |
597 | }; | 589 | }; |
598 | struct ipc_params sem_params; | 590 | struct ipc_params sem_params; |