Page MenuHomeFreeBSD

D9046.id23613.diff
No OneTemporary

D9046.id23613.diff

Index: usr.bin/users/users.cc
===================================================================
--- usr.bin/users/users.cc
+++ usr.bin/users/users.cc
@@ -27,6 +27,7 @@
* SUCH DAMAGE.
*/
+#include <sys/capsicum.h>
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -51,6 +52,10 @@
}
setutxent();
+
+ if (cap_enter() < 0 && errno != ENOSYS)
+ err(1, "Failed to enter capability mode.");
+
while ((ut = getutxent()) != NULL)
if (ut->ut_type == USER_PROCESS)
names.insert(ut->ut_user);

File Metadata

Mime Type
text/plain
Expires
Tue, Sep 8, 8:57 PM (11 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38537213
Default Alt Text
D9046.id23613.diff (508 B)

Event Timeline