Skip to contentSkip to conversation

Bogus permissions on xenconsoled.pid

DISCUSSION Jordan Russell 1 participant 1 message Aug 31, 2006

lore
Share & tools
lore
#0 lore raw

Came across this issue in 3.0.2; looks to also be present in the latest unstable sources:

# ls -l /var/run/xenconsoled.pid
-rwS--x--T 1 root root 5 Aug 31 00:29 /var/run/xenconsoled.pid

setuid, group-execute, and sticky...?

This happens because daemonize() in tools/console/daemon/utils.c isn't specifying a "mode" parameter when creating the file:

   fd = open(pidfile, O_RDWR | O_CREAT);
Signature · 1 line
Jordan Russell