X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fmount.c;h=081e92c029a172b43cf0c65bb746cc935ae3147d;hb=1d0ae74ae3228220f9c2668b15c02b1e941fb011;hp=e3984203ac3d33b37b21351cacb30523578a9a03;hpb=4cd1fbcc0648a289e9bf9d9047621bbdf7ec0ece;p=elogind.git diff --git a/src/mount.c b/src/mount.c index e3984203a..081e92c02 100644 --- a/src/mount.c +++ b/src/mount.c @@ -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; }