The SuidCheck module was not available in jessie (despite our
configuration file mentioning it), and is now enabled by default in
stretch.
For the build daemons, we need to disable suid checks in
/srv/buildd/unpack.
For the porterboxes, we need to disable suid checks in
/srv/chroot/schroot-unpack.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
#
#####################################################
-# [SuidCheck]
+[SuidCheck]
##
## --- Check the filesystem for SUID/SGID binaries
##
## Directory to exclude
#
+<% if scope.lookupvar('site::nodeinfo')['buildd'] -%>
+SuidCheckExclude = /srv/buildd/unpack
+<% elsif scope.lookupvar('site::nodeinfo')['porterbox'] -%>
+SuidCheckExclude = /srv/chroot/schroot-unpack
+<% else -%>
# SuidCheckExclude = NULL
+<% end -%>
## Limit on files per second (0 == no limit)
#