https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235096

            Bug ID: 235096
           Summary: [patch] usr.bin/write broken capabilities checking
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: b...@freebsd.org
          Reporter: fulle...@over-yonder.net

Created attachment 201301
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201301&action=edit
patch

In r306761 when write(1) was capsicumized, a call to setutxent() was added to
load up the utx db before entering capabilities mode.  However, the other
setutxent() calls in later functions were left in place, so the actual
getutx*() calls would still fail, making write unable to find any users.

-CURRENT presumably needs a similar patch.  Attach patch applies cleanly to
-CURRENT, but I've only tested on stable/12.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to