diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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: |