aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index df98de290475..e803abec2b08 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -913,10 +913,7 @@ static int semctl_down(struct ipc_namespace *ns, int semid,
913 freeary(ns, ipcp); 913 freeary(ns, ipcp);
914 goto out_up; 914 goto out_up;
915 case IPC_SET: 915 case IPC_SET:
916 ipcp->uid = semid64.sem_perm.uid; 916 ipc_update_perm(&semid64.sem_perm, ipcp);
917 ipcp->gid = semid64.sem_perm.gid;
918 ipcp->mode = (ipcp->mode & ~S_IRWXUGO)
919 | (semid64.sem_perm.mode & S_IRWXUGO);
920 sma->sem_ctime = get_seconds(); 917 sma->sem_ctime = get_seconds();
921 break; 918 break;
922 default: 919 default: