lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Xine.LNX.4.64.0805271019550.17391@us.intercode.com.au>
Date:	Tue, 27 May 2008 10:20:17 +1000 (EST)
From:	James Morris <jmorris@...ei.org>
To:	Markku Savela <msa@...h.iki.fi>
cc:	linux-kernel@...r.kernel.org,
	linux-security-module@...r.kernel.org, Greg KH <greg@...ah.com>
Subject: Re: Bug/misfeature of "securityfs"

On Mon, 26 May 2008, Markku Savela wrote:

> 
> I write a module which creates a securityfs on init
> 
>   foobar =  securityfs_create_dir("foobar", NULL)
> and on exit it does
>   security_fs_remove(foobar);
> 
> When I do "insmod" and "rmmod", I see
> 
>   /sys/kernel/security/foobar/
> 
> appear and go away.
> 
> Now, if have a shell and do "cd /sys/kernel/security/foobar", the
> "rmmod" does not remove the directory. The directory disappears when I
> exit the shell from it via "cd ..". This is fine, and as it should be,
> but....
> 
> IF, while having the shell in the directory, I try to "insmod" again,
> the insmod fails with "-1 File exists". Again, understandable, BUT
> when after this I exit the shell from the directory, IT DOES NOT GO
> AWAY. It's permanetly existing, and module install fails always with
> "File Exists".
> 
> Is this a bug, or am doing something wrong?
> 
> The kernel is Ubuntu Hardy heron
>     2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686

Sounds like a bug.


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ