chiark / gitweb /
minor typo fixes
[elogind.git] / src / mount.c
index e3984203ac3d33b37b21351cacb30523578a9a03..081e92c029a172b43cf0c65bb746cc935ae3147d 100644 (file)
@@ -303,6 +303,11 @@ static int mount_verify(Mount *m) {
                 return -EBADMSG;
         }
 
+        if (m->exec_context.pam_name && m->kill_mode != KILL_CONTROL_GROUP) {
+                log_error("%s has PAM enabled. Kill mode must be set to 'control-group'. Refusing.", m->meta.id);
+                return -EINVAL;
+        }
+
         return 0;
 }