Re: [PATCH 8/9] user namespaces: debug refcounts

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

 



On Fri, May 29, 2009 at 05:33:52PM -0500, Serge E. Hallyn wrote:
> Create /proc/userns, which prints out all user namespaces.  It
> prints the address of the user_ns itself, the uid and userns address
> of the user who created it, and the reference count.

> +static int proc_userns_show(struct seq_file *m, void *v)
> +{
> +	struct user_namespace *ns = v;
> +	seq_printf(m, "userns %p creator (uid %d ns %p) count %d\n",
> +		(void *)ns, ns->creator->uid, (void *) ns->creator->user_ns,
> +		atomic_read(&ns->kref.refcount));
> +	return 0;
> +}

Kernel shouldn't expose location of kernel objects to userspace.
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

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

  Powered by Linux