logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

NS_GET_OWNER_UID - discovering the owner of a user namespace

Description

       The  NS_GET_OWNER_UID  operation can be used to discover the owner user ID of a user namespace (i.e., the
       effective user ID of the process that created the user namespace).

       fd refers to a /proc/pid/ns/user file.

       The owner user ID is returned in the uid_t pointed to by the third argument.

Errors

EINVALfd does not refer to a user namespace.

History

       Linux 4.11.

Name

       NS_GET_OWNER_UID - discovering the owner of a user namespace

Return Value

       On success, 0 is returned.  On error, -1 is returned, and errno is set to indicate the error.

See Also

ioctl(2), ioctl_nsfs(2)

Linux man-pages 6.9.1                              2024-06-13                           NS_GET_OWNER_UID(2const)

Standards

       Linux.

Synopsis

#include<linux/nsfs.h>  /* Definition of NS_GET_OWNER_UID */
       #include<sys/ioctl.h>intioctl(intfd,NS_GET_OWNER_UID,uid_t*uid);

See Also