[Bug 235096] [patch] usr.bin/write broken capabilities checking

2019-01-23 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235096

Mark Johnston  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|ma...@freebsd.org

-- 
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"


[Bug 235096] [patch] usr.bin/write broken capabilities checking

2019-01-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235096

Mark Johnston  changed:

   What|Removed |Added

 CC||c...@freebsd.org,
   ||ma...@freebsd.org
 Status|New |Open

--- Comment #1 from Mark Johnston  ---
This looks good to me, and seems to fix write(1).

-- 
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"


[Bug 235096] [patch] usr.bin/write broken capabilities checking

2019-01-20 Thread bugzilla-noreply
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=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"