4 Commits

Author SHA1 Message Date
PascalWithopf
1628ef2a37 testbench: workaround for solaris 2017-04-13 14:07:38 +02:00
Thomas D
b1983d0951 Make privdrop tests more portable and robust
- Don't use $UID, use $EUID instead

- Allow user to specify testuser (through RSYSLOG_TESTUSER env variable)
  or fall back to various default users

- Validate if user running tests can really impersonate another user

- Test if testuser really exists

Fixes: https://github.com/rsyslog/rsyslog/issues/927
2016-04-15 13:34:52 +02:00
Rainer Gerhards
94013fe7c2 testbench: do no longer assume primary group name = user name
this doesn't hold true on all test environments
2016-03-25 11:52:57 +01:00
Rainer Gerhards
32582e775b testbench: add tests for $PrivDropToGroup*
This also introduces a new global setting to permit keep
supplemental groups during privilege drop. This is needed
when we want to run the tests as non-root (what we want).

Sample:
global(privdrop.group.keepsupplemental="on")

The new tests ensure that we catch regressions in the privilege
drop code.

see also https://github.com/rsyslog/rsyslog/issues/889
2016-03-24 17:55:33 +01:00