After changing permissions of /var/mail directory to 755:

$ chmod 755 /var/mail

everything is fine and seteuid(2) is not called:
 92121 lockspool NAMI  "/var/mail/root.lock"
 92121 lockspool RET   unlink 0
 92121 lockspool CALL  kbind(0x7f7ffffc7f58,24,0xefbb72852ff02523)
 92121 lockspool RET   kbind 0
 92121 lockspool CALL  exit(0)

Killing lockspool(1) by pledge(2) happens when permissions of /var/mail
are greater than 755. Maybe it would be useful to give user an indication
that it is the permission issue instead of killing the process by pledge?

What do you think?

Reply via email to