Projects
scan
scanbd
0001-Do-not-fail-if-effective-uid-and-gid-set-c...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Do-not-fail-if-effective-uid-and-gid-set-calls-with-.patch of Package scanbd
From ebac119e57a59406686c51998b4b73af0591a08b Mon Sep 17 00:00:00 2001 From: Frank Kunz <mailinglists@kunz-im-inter.net> Date: Tue, 24 May 2022 18:24:11 +0200 Subject: [PATCH 1/2] Do not fail if effective uid and gid set calls with uid 0 fails This allows to start the daemon as normal user. Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net> --- src/scanbd/sane.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scanbd/sane.c b/src/scanbd/sane.c index b031904..14b2dcc 100644 --- a/src/scanbd/sane.c +++ b/src/scanbd/sane.c @@ -1074,11 +1074,9 @@ static void* sane_poll(void* arg) { uid_t egid = getegid(); if (seteuid(0) < 0) { slog(SLOG_DEBUG, "Can't seteuid root: %s", strerror(errno)); - exit(EXIT_FAILURE); } if (setegid(0) < 0) { slog(SLOG_DEBUG, "Can't setegid root: %s", strerror(errno)); - exit(EXIT_FAILURE); } slog(SLOG_DEBUG, "setgid to gid=%d", egid); if (setgid(egid) < 0) { -- 2.36.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.