Commit Graph

8 Commits

Author SHA1 Message Date
Eitan Adler
bec6dc30e1 users(1): Use capsicum helpers for users
In doing so also fix the libcasper.h header to work in C++.
2018-06-25 11:44:41 +00:00
Warner Losh
fbbd9655e5 Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by:	Jan Schaumann <jschauma@stevens.edu>
Pull Request:	https://github.com/freebsd/freebsd/pull/96
2017-02-28 23:42:47 +00:00
Allan Jude
2c7c36f993 style(9) fix
Submitted by:	jmallett
2017-01-07 17:37:39 +00:00
Allan Jude
47312af69a Capsicum: add capability mode to users binary
Submitted by:	Tyler Littlefield <tyler@tysdomain.com>
Reviewed by:	cem, oshogbo
Differential Revision:	https://reviews.freebsd.org/D9046
2017-01-07 04:57:21 +00:00
Ed Schouten
e8df2232e0 Fix a couple of style nits.
- Use set instead of std::set, to be consistent with the rest of the file.
- Remove return (0); it's not required.
- Add a dash at the beginning of the copyright, per style(9).
2014-07-10 16:10:39 +00:00
Ed Schouten
63cdd39993 Don't use auto, as we also need to support GCC 4.2. 2014-07-10 15:58:28 +00:00
Ed Schouten
975f912456 Let users(1) use an std::set, instead of std::{vector,sort,unique}.
Reviewed by:	gahr
2014-07-10 15:56:15 +00:00
Pietro Cerutti
33aa643fa0 Reimplements users(1) in C++.
This reduces the lines of code by roughly 50% (not counting the COPYRIGHT
header) and makes it more readable by using standard algorithms.

Approved by:	bapt
2014-07-10 12:15:02 +00:00