chiark / gitweb /
systemd-detect-virt: detect s390 virtualization
[elogind.git] / src / shared / clean-ipc.c
index ddd42cc2b2b742250fbda1cd92e3615e5721303b..cb1722614e7cd5dc21f938bafa2b2d6629b4f9b1 100644 (file)
@@ -332,8 +332,8 @@ fail:
 int clean_ipc(uid_t uid) {
         int ret = 0, r;
 
-        /* Refuse to clean IPC of the root user */
-        if (uid == 0)
+        /* Refuse to clean IPC of the root and system users */
+        if (uid <= SYSTEM_UID_MAX)
                 return 0;
 
         r = clean_sysvipc_shm(uid);