On 10/18/07, Al Viro [EMAIL PROTECTED] wrote:
On Thu, Oct 18, 2007 at 05:57:05AM +0100, Al Viro wrote:
On Tue, Oct 16, 2007 at 09:17:40PM -0700, Casey Schaufler wrote:
Think what happens if CPU1 adds to list and CPU2 sees write to smk_known
*before* it sees write to -smk_next. We see a
--- Al Viro [EMAIL PROTECTED] wrote:
On Tue, Oct 16, 2007 at 09:17:40PM -0700, Casey Schaufler wrote:
At random:
+static int smack_netlabel(struct sock *sk)
+{
+ static int initialized;
+ struct socket_smack *ssp = sk-sk_security;
+ struct netlbl_lsm_secattr secattr;
+
On Tue, Oct 16, 2007 at 09:17:40PM -0700, Casey Schaufler wrote:
At random:
+static int smack_netlabel(struct sock *sk)
+{
+ static int initialized;
+ struct socket_smack *ssp = sk-sk_security;
+ struct netlbl_lsm_secattr secattr;
+ int rc = 0;
+
+ if (!initialized) {
On Thu, Oct 18, 2007 at 05:57:05AM +0100, Al Viro wrote:
On Tue, Oct 16, 2007 at 09:17:40PM -0700, Casey Schaufler wrote:
Think what happens if CPU1 adds to list and CPU2 sees write to smk_known
*before* it sees write to -smk_next. We see a single-element list and
we'll be lucky if that