I can't reproduce this as yet. With a plain, fresh pull from Linus' tree on a rhel5.3 system, I get the following. Can you confirm that in your case, with the commands below, you do not see the last line in the 'keyctl show' output?
with user namespaces:
[root@linuz11 ~]# keyctl add user mykey stuff @u 743079327 [root@linuz11 ~]# keyctl list @u 1 key in keyring: 743079327: --alswrv 0 0 user: mykey [root@linuz11 ~]# keyctl show Session Keyring -3 --alswrv 0 0 keyring: _ses 713825872 --alswrv 0 -1 \_ keyring: _uid.0 743079327 --alswrv 0 0 \_ user: mykey [root@linuz11 ~]# uname -a Linux linuz11.watson.ibm.com 2.6.31-rc3-00157-gaea1f79 #582 SMP Wed Jul 22 13:14:37 EDT 2009 s390x s390x s390x GNU/Linux
without user namespaces:
[root@linuz11 ~]# keyctl add user mykey stuff @u 113989424 [root@linuz11 ~]# keyctl list @u 1 key in keyring: 113989424: --alswrv 0 0 user: mykey [root@linuz11 ~]# keyctl show Session Keyring -3 --alswrv 0 0 keyring: _ses 653741632 --alswrv 0 -1 \_ keyring: _uid.0 113989424 --alswrv 0 0 \_ user: mykey
I can't reproduce this as yet. With a plain, fresh pull from Linus' tree on a rhel5.3 system,
I get the following. Can you confirm that in your case, with the commands below, you do
not see the last line in the 'keyctl show' output?
with user namespaces:
[root@linuz11 ~]# keyctl add user mykey stuff @u watson. ibm.com 2.6.31- rc3-00157- gaea1f79 #582 SMP Wed Jul 22 13:14:37 EDT 2009 s390x s390x s390x GNU/Linux
743079327
[root@linuz11 ~]# keyctl list @u
1 key in keyring:
743079327: --alswrv 0 0 user: mykey
[root@linuz11 ~]# keyctl show
Session Keyring
-3 --alswrv 0 0 keyring: _ses
713825872 --alswrv 0 -1 \_ keyring: _uid.0
743079327 --alswrv 0 0 \_ user: mykey
[root@linuz11 ~]# uname -a
Linux linuz11.
without user namespaces:
[root@linuz11 ~]# keyctl add user mykey stuff @u
113989424
[root@linuz11 ~]# keyctl list @u
1 key in keyring:
113989424: --alswrv 0 0 user: mykey
[root@linuz11 ~]# keyctl show
Session Keyring
-3 --alswrv 0 0 keyring: _ses
653741632 --alswrv 0 -1 \_ keyring: _uid.0
113989424 --alswrv 0 0 \_ user: mykey