Re: RCU issue with SELinux (Re: SELINUX performance issues)

From: Stephen Smalley
Date: Tue Aug 24 2004 - 10:46:44 EST


On Tue, 2004-08-24 at 03:25, Kaigai Kohei wrote:
> You are right. Indeed, the lock for hash bucket is also necessary
> when avc_insert() is called. I fixed them.

avc_has_perm* can be called from interrupt or bh, e.g. send_sigio or
sock_rcv_skb. So using just spin_lock/spin_unlock rather than
spin_lock_irqsave/restore is unsafe, right?

--
Stephen Smalley <sds@xxxxxxxxxxxxxx>
National Security Agency

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/