Opened 7 years ago

Closed 7 years ago

#1480 closed defect (fixed)

Prevent root-owned files in execd active_job spool area

Reported by: markdixon Owned by:
Priority: normal Milestone:
Component: sge Version: 8.1.5
Severity: minor Keywords:


The new cgroup/cpuset code uses a couple of routines for switching effective uid/gid which appear to be causing some problems.

Some of the side symptoms include the following files in the execd spool sometimes being owned by root:


That last entry is a directory created for a SLAVE task. It being root-owned can cause jobs to fail with a "can't open pid file" error message.

The execd appears to have the correct euid/egid when entering the cgroup code, so I have removed the offending function calls. I don't know if there's a good reason for them that I've not noticed in limited testing.

Potential patch attached.



Mark Dixon Email : m.c.dixon@…
HPC/Grid Systems Support Tel (int): 35429
Information Systems Services Tel (ext): +44(0)113 343 5429
University of Leeds, LS2 9JT, UK


Attachments (1)

0001-Prevent-root-owned-files-in-execd-active_job-spool-a.patch (1.7 KB) - added by markdixon 7 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by markdixon

Added by email2trac

comment:1 Changed 7 years ago by dlove

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by [4640]

Note: See TracTickets for help on using tickets.