[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47AC87E1.7090803@kernel.org>
Date: Fri, 08 Feb 2008 08:48:33 -0800
From: "Andrew G. Morgan" <morgan@...nel.org>
To: Kohei KaiGai <kaigai@...jp.nec.com>
CC: "Serge E. Hallyn" <serue@...ibm.com>, akpm@...l.org,
jmorris@...ei.org, linux-kernel@...r.kernel.org,
linux-security-module@...r.kernel.org
Subject: Re: [PATCH] exporting capability code/name pairs (try #4)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
KaiGai,
Thanks for trying to accommodate me :-)
Kohei KaiGai wrote:
| In addition, Andrew suggested me to export these translation by symlinks
| to reduce the number of invocation of system call.
Yes, I wanted to make use of readlink() instead of open()/read()/close()
to access each unknown capability.
| However, current sysfs interface does not allows to create symlinks with
| invalid indication.
:-(
| Thus, this patch exports them as regular files.
What about using symlinks for the name files and text content for the
numeric ones? You could even drop the names/ and codes/ subdirectories too:
$ cat /sys/kernel/capability/20
cap_sys_pacct
$ ls -l /sys/kernel/capability/cap_mknod
lr--r--r-- 1 root root 64 Feb 8 08:26 cap_mknod -> 27
$ cat /sys/kernel/capability/names/cap_mknod
cap_mknod
Cheers
Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFHrIfh+bHCR3gb8jsRAkueAKDYMu+so+YCJD9klNentiWlwZJXlQCgrzSa
tWr1XM1nKcvST1ScAfO27j4=
=w5N/
-----END PGP SIGNATURE-----
--
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