Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87502
b: refs/heads/master
c: 1d252fb
h: refs/heads/master
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Linus Torvalds committed Mar 20, 2008
1 parent 5b3af04 commit e56ea05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ebf89845bea44a164d1fbb8fa319379ec7132de
refs/heads/master: 1d252fb870aa9cd227c4beb1a226ecd434f57f28
9 changes: 6 additions & 3 deletions trunk/security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ static int smack_shm_associate(struct shmid_kernel *shp, int shmflg)
*/
static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd)
{
char *ssp = smack_of_shm(shp);
char *ssp;
int may;

switch (cmd) {
Expand All @@ -1532,6 +1532,7 @@ static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd)
return -EINVAL;
}

ssp = smack_of_shm(shp);
return smk_curacc(ssp, may);
}

Expand Down Expand Up @@ -1616,7 +1617,7 @@ static int smack_sem_associate(struct sem_array *sma, int semflg)
*/
static int smack_sem_semctl(struct sem_array *sma, int cmd)
{
char *ssp = smack_of_sem(sma);
char *ssp;
int may;

switch (cmd) {
Expand Down Expand Up @@ -1645,6 +1646,7 @@ static int smack_sem_semctl(struct sem_array *sma, int cmd)
return -EINVAL;
}

ssp = smack_of_sem(sma);
return smk_curacc(ssp, may);
}

Expand Down Expand Up @@ -1730,7 +1732,7 @@ static int smack_msg_queue_associate(struct msg_queue *msq, int msqflg)
*/
static int smack_msg_queue_msgctl(struct msg_queue *msq, int cmd)
{
char *msp = smack_of_msq(msq);
char *msp;
int may;

switch (cmd) {
Expand All @@ -1752,6 +1754,7 @@ static int smack_msg_queue_msgctl(struct msg_queue *msq, int cmd)
return -EINVAL;
}

msp = smack_of_msq(msq);
return smk_curacc(msp, may);
}

Expand Down

0 comments on commit e56ea05

Please sign in to comment.