Lines Matching refs:uid

55                 uid_t uid, cuid;  in clean_sysvipc_shm()  local
71 &shmid, &cpid, &lpid, &n_attached, &uid, &gid, &cuid, &cgid) != 8) in clean_sysvipc_shm()
77 if (!match_uid_gid(uid, gid, delete_uid, delete_gid)) in clean_sysvipc_shm()
117 uid_t uid, cuid; in clean_sysvipc_sem() local
133 &semid, &uid, &gid, &cuid, &cgid) != 5) in clean_sysvipc_sem()
136 if (!match_uid_gid(uid, gid, delete_uid, delete_gid)) in clean_sysvipc_sem()
176 uid_t uid, cuid; in clean_sysvipc_msg() local
193 &msgid, &cpid, &lpid, &uid, &gid, &cuid, &cgid) != 7) in clean_sysvipc_msg()
196 if (!match_uid_gid(uid, gid, delete_uid, delete_gid)) in clean_sysvipc_msg()
221 static int clean_posix_shm_internal(const char *dirname, DIR *dir, uid_t uid, gid_t gid, bool rm) { in clean_posix_shm_internal() argument
250 r = clean_posix_shm_internal(de->d_name, kid, uid, gid, rm); in clean_posix_shm_internal()
255 if (!match_uid_gid(st.st_uid, st.st_gid, uid, gid)) in clean_posix_shm_internal()
275 if (!match_uid_gid(st.st_uid, st.st_gid, uid, gid)) in clean_posix_shm_internal()
301 static int clean_posix_shm(uid_t uid, gid_t gid, bool rm) { in clean_posix_shm() argument
312 return clean_posix_shm_internal("/dev/shm", dir, uid, gid, rm); in clean_posix_shm()
315 static int clean_posix_mq(uid_t uid, gid_t gid, bool rm) { in clean_posix_mq() argument
344 if (!match_uid_gid(st.st_uid, st.st_gid, uid, gid)) in clean_posix_mq()
373 int clean_ipc_internal(uid_t uid, gid_t gid, bool rm) { in clean_ipc_internal() argument
386 if (uid == 0) { in clean_ipc_internal()
390 uid = UID_INVALID; in clean_ipc_internal()
400 if (!uid_is_valid(uid) && !gid_is_valid(gid)) in clean_ipc_internal()
403 r = clean_sysvipc_shm(uid, gid, rm); in clean_ipc_internal()
411 r = clean_sysvipc_sem(uid, gid, rm); in clean_ipc_internal()
419 r = clean_sysvipc_msg(uid, gid, rm); in clean_ipc_internal()
427 r = clean_posix_shm(uid, gid, rm); in clean_ipc_internal()
435 r = clean_posix_mq(uid, gid, rm); in clean_ipc_internal()
446 int clean_ipc_by_uid(uid_t uid) { in clean_ipc_by_uid() argument
447 return clean_ipc_internal(uid, GID_INVALID, true); in clean_ipc_by_uid()