empty result from lsns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lsns from util-linux 2.28.1 does not display anything on my system.

End of strace output:
open("/proc/31676", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
openat(4, "stat", O_RDONLY)             = 5
fcntl(5, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(5, "31676 (ext4-rsv-conver) S 2 0 0 "..., 1024) = 169
newfstatat(4, "ns/mnt", {st_mode=S_IFREG|0444, st_size=0, ...}, 0) = 0
newfstatat(4, "ns/net", {st_mode=S_IFREG|0444, st_size=0, ...}, 0) = 0
newfstatat(4, "ns/pid", {st_mode=S_IFREG|0444, st_size=0, ...}, 0) = 0
newfstatat(4, "ns/uts", {st_mode=S_IFREG|0444, st_size=0, ...}, 0) = 0
newfstatat(4, "ns/ipc", {st_mode=S_IFREG|0444, st_size=0, ...}, 0) = 0
newfstatat(4, "ns/user", 0x7ffd30d84020, 0) = -1 ENOENT (No such file
or directory)
close(5)                                = 0
close(4)                                = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

I have user namespaces disabled in my kernel (CONFIG_USER_NS=n).
I thinkthe reason for the empty output is that the ENOENT for ns/user
causes read_process to ignore the process completely.

Thanks,
--
Michał Bartoszkiewicz <mbartoszkiewicz@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux