Searched defs:procfd (Results 1 - 2 of 2) sorted by relevance

/lxc/hooks/
H A Dunmount-namespace.c98 static int read_mounts(int procfd, struct mount **mp, size_t *countp) { argument
114 fd = openat(procfd, "self/mounts", O_RDONLY);
164 int i, procfd, ctmntfd; local
192 procfd = open("/proc", O_RDONLY | O_DIRECTORY | O_PATH);
193 if (procfd < 0) {
203 close(procfd);
211 close(procfd);
216 /* Now read [[procfd]]/self/mounts */
217 if (!read_mounts(procfd, &mounts, &count)) {
220 close(procfd);
[all...]
/lxc/src/lxc/
H A Dattach.c83 static int lsm_openat(int procfd, pid_t pid, int on_exec) argument
109 labelfd = openat(procfd, path, O_RDWR);
842 int procfd = -1; local
860 procfd = open("/proc", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
861 if (procfd < 0) {
939 labelfd = lsm_openat(procfd, attached_pid, on_exec);
953 if (procfd >= 0)
954 close(procfd);
972 if (procfd >= 0)
973 close(procfd);
[all...]

Completed in 10 milliseconds