[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200805310810.FJG69298.HtLQSVFOFMOJOF@I-love.SAKURA.ne.jp>
Date: Sat, 31 May 2008 08:10:45 +0900
From: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
To: darwish.07@...il.com, casey@...aufler-ca.com, paul.moore@...com
Cc: linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
akpm@...ux-foundation.org
Subject: Re: [PATCH BUGFIX -v2 -rc4] Smack: Respect 'unlabeled' netlabel mode
Hello.
Ahmed S. Darwish wrote:
> default:
> + mutex_lock(&smack_ambient_lock);
> + nlsp->domain = kstrdup(smack_net_ambient, GFP_ATOMIC);
> + mutex_unlock(&smack_ambient_lock);
> +
> + nlsp->flags = NETLBL_SECATTR_DOMAIN;
> break;
Getting a mutex lock might sleep, so why not use GFP_KERNEL ?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists