7 cat >/etc/userv/services.d/userv-t-env <<END
8 if ( glob calling-user bin
9 & glob service-user games
16 tmp="${AUTOPKGTEST_ARTIFACTS}"
17 if [ "x$tmp" = x ]; then
26 : '---------- test service invocation ----------'
29 userv games userv-t-env >"$tmp"/env
32 'USERV_SERVICE=userv-t-env' \
34 'USERV_GROUP=bin bin' \
35 "USERV_UID=$bin_uid" \
36 "USERV_GID=$bin_gid $bin_gid" \
38 egrep "^$expect\$" "$tmp"/env
41 : '---------- test rejection (wrong calling user) ----------'
43 expect_output 255 '' \
45 userv games userv-t-env