mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Bug/misfeature of "securityfs"
@ 2008-05-26 10:36 Markku Savela
  2008-05-27  0:20 ` James Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Markku Savela @ 2008-05-26 10:36 UTC (permalink / raw)
  To: linux-kernel


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

-- 
Markku Savela

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-06  6:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-26 10:36 Bug/misfeature of "securityfs" Markku Savela
2008-05-27  0:20 ` James Morris
2008-05-27  3:52   ` Greg KH
2008-05-27  5:44     ` Markku Savela
2008-05-27  7:17     ` Markku Savela
2008-06-06  2:16       ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®