All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cleanup in ss/services.c
@ 2009-06-18  8:30 KaiGai Kohei
  2009-06-18 11:54 ` James Morris
  0 siblings, 1 reply; 2+ messages in thread
From: KaiGai Kohei @ 2009-06-18  8:30 UTC (permalink / raw)
  To: selinux

It is a cleanup patch to cut down a line within 80 columns.

 Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
--
 security/selinux/ss/services.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 500e6f7..c601ea4 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -480,7 +480,7 @@ static int context_struct_compute_av(struct context *scontext,
 		if ((constraint->permissions & (avd->allowed)) &&
 		    !constraint_expr_eval(scontext, tcontext, NULL,
 					  constraint->expr)) {
-			avd->allowed = (avd->allowed) & ~(constraint->permissions);
+			avd->allowed &= ~(constraint->permissions);
 		}
 		constraint = constraint->next;
 	}
@@ -499,8 +499,8 @@ static int context_struct_compute_av(struct context *scontext,
 				break;
 		}
 		if (!ra)
-			avd->allowed = (avd->allowed) & ~(PROCESS__TRANSITION |
-							PROCESS__DYNTRANSITION);
+			avd->allowed &= ~(PROCESS__TRANSITION |
+					  PROCESS__DYNTRANSITION);
 	}

 	/*

-- 
OSS Platform Development Division, NEC
KaiGai Kohei <kaigai@ak.jp.nec.com>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cleanup in ss/services.c
  2009-06-18  8:30 [PATCH] cleanup in ss/services.c KaiGai Kohei
@ 2009-06-18 11:54 ` James Morris
  0 siblings, 0 replies; 2+ messages in thread
From: James Morris @ 2009-06-18 11:54 UTC (permalink / raw)
  To: KaiGai Kohei; +Cc: selinux

On Thu, 18 Jun 2009, KaiGai Kohei wrote:

> It is a cleanup patch to cut down a line within 80 columns.
> 
>  Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
> --
>  security/selinux/ss/services.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)


Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next


-- 
James Morris <jmorris@namei.org>


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-18 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18  8:30 [PATCH] cleanup in ss/services.c KaiGai Kohei
2009-06-18 11:54 ` James Morris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.