From e13acf74dd4418bc7c913ad111eb75dd4cbaf82d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 May 2012 15:05:17 +0200 Subject: systemd: secure rtkit service a bit --- rtkit-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rtkit-daemon.c') diff --git a/rtkit-daemon.c b/rtkit-daemon.c index 3da800f..2ebe673 100644 --- a/rtkit-daemon.c +++ b/rtkit-daemon.c @@ -114,7 +114,7 @@ #define assert_se(expr) \ do { \ if (__builtin_expect(!(expr), 0)) { \ - fprintf(stderr, "Asssertion %s failed at %s:%u, function %s(). Aborting.\n", #expr, __FILE__, __LINE__, __PRETTY_FUNCTION__); \ + fprintf(stderr, "Assertion %s failed at %s:%u, function %s(). Aborting.\n", #expr, __FILE__, __LINE__, __PRETTY_FUNCTION__); \ abort(); \ } \ } while(0) @@ -1790,7 +1790,7 @@ static int drop_privileges(void) { } if (!keep) - assert_se(prctl(PR_CAPBSET_DROP, c) == 0 || errno == EINVAL); + assert_se(prctl(PR_CAPBSET_DROP, c) == 0 || errno == EINVAL || errno == EPERM); } /* Fourth, say that we want to keep caps */ -- cgit