Bug 32416 - Запуск cups от пользователя игнорирует параметр PidFile в cupsd.conf
: Запуск cups от пользователя игнорирует параметр PidFile в cupsd.conf
Status: NEW
: Sisyphus
(All bugs in Sisyphus/cups)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2016-08-22 11:20 by
Modified: 2016-08-22 11:20 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2016-08-22 11:20:22
В cupsd.conf указан PidFile /tmp/cups.pid

strace /usr/sbin/cupsd -c cupsd.conf

rt_sigaction(SIGUSR1, {0x55881ffaab90, [USR1], SA_RESTORER, 0x7fc378002e60},
NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x55881ffaab90, [USR1], SA_RESTORER, 0x7fc378002e60},
NULL, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN, [], SA_RESTORER, 0x7fc378002e60}, NULL, 8) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fc3796d2b90) = 22418
nanosleep({1, 0}, {0, 991112824})       = ? ERESTART_RESTARTBLOCK (Interrupted
by signal)
--- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=22418, si_uid=500} ---
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
open("/var/run/cupsd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES
(Permission denied)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22418, si_uid=500,
si_status=1, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 0
exit_group(0)                           = ?
+++ exited with 0 +++

но он пытается записать pid в /var/run/cupsd.pid