login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
February
»
22
Re: [PATCH][SMACK] convert smack rule list to linux list
view
thread
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Tetsuo Handa
Subject:
Re: [PATCH][SMACK] convert smack rule list to linux list
Date: Sunday, February 22, 2009 - 4:40 am
etienne wrote:
quoted text
> diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c > index 2e0b83e..3dc312d 100644 > --- a/security/smack/smack_access.c > +++ b/security/smack/smack_access.c > @@ -87,7 +87,6 @@ static u32 smack_next_secid = 10; > int smk_access(char *subject_label, char *object_label, int request) > { > u32 may = MAY_NOT; > - struct smk_list_entry *sp; > struct smack_rule *srp; > > /* > @@ -139,8 +138,8 @@ int smk_access(char *subject_label, char *object_label, int request) > * access (e.g. read is included in readwrite) it's > * good. > */ > - for (sp = smack_list; sp != NULL; sp = sp->smk_next) { > - srp = &sp->smk_rule; > + > + list_for_each_entry(srp, &smack_rule_list, list) { > > if (srp->smk_subject == subject_label || > strcmp(srp->smk_subject, subject_label) == 0) {
Use of standard doubly linked list requires a lock, doesn't it? What lock protects smack_rule_list? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH][SMACK] convert smack rule list to linux list
, Tetsuo Handa
, (Sun Feb 22, 4:40 am)
[PATCH][SMACK] convert smack rule list to linux list
, etienne
, (Sun Feb 22, 4:59 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, Tetsuo Handa
, (Sun Feb 22, 6:13 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, etienne
, (Sun Feb 22, 6:14 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, Tetsuo Handa
, (Sun Feb 22, 6:31 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, etienne
, (Sun Feb 22, 8:18 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, Paul E. McKenney
, (Sun Feb 22, 8:28 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, Paul E. McKenney
, (Sun Feb 22, 8:31 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, Casey Schaufler
, (Sun Feb 22, 10:54 am)
Re: [PATCH][SMACK] convert smack rule list to linux list
, Paul E. McKenney
, (Sun Feb 22, 11:25 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Frederic Weisbecker
[PATCH v2] struct sort_entry has a callback named snprintf that turns an entry int...
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Jens Axboe
Re: [BUG] Linux 2.6.25-rc2 - Regression from 2.6.24-rc1-git1 softlockup while bo...
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
Ingo Molnar
Re: [GIT PULL] time.c - respin
git
:
Junio C Hamano
Re: git-svnimport
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: Fwd: git status options feature suggestion
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
ARM: S3C64XX: DMA: Callback with correct buffer pointer
Linux Kernel Mailing List
sata_mv: drop unncessary EH callback resetting
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate