Commit ID:      1005612BFAB3F829321
CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2015/10/05 18:22:52 UTC

Modified files:
        sbin/shutdown  : shutdown.c

Log message:
sprinkle some UID switching in the wake of shell security:

• when popen(3)ing wall(1) temporarily become the invoking user
  for both EUID and UID, to avoid using a privileged sh(1)
• before chaining to halt(8) become root
• drop the now-useless-and-harmful (if 100522F64F41F46A361 is active) -p

To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.5 -r1.6 src/sbin/shutdown/shutdown.c

Reply via email to