Project

General

Profile

Actions

Bug #2374

closed

Delete SCDropCaps() and all calls to it?

Added by Richard Sailer over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

POSIX requires that all pthread of a process have the same uid and gid (man ntpl, man setuid). Linux implements this.

If you change the uid of one thread, the pids of all others are synchronised. In util-privs.c we have two functions:

  • SCDropMainThreadCaps()
    Drops privileges for mainthread at startup and therefore for all threads.
  • SCDropCaps()

SCDropCaps() currently does nothing (body disabled via #if 0 preprocessor macro), but gets called at several points in the code.
I would suggest to remove the function definition and its calls.

Any opinions, thoughts on this?

Actions

Also available in: Atom PDF