View | Details | Raw Unified | Return to bug 3030
Collapse All | Expand All

(-)old/openbsd-compat/port-solaris.c (-2 / +2 lines)
Lines 1-5 Link Here
1
/*
1
/*
2
 * Copyright (c) 2006 Chad Mynhier.
2
 * Copyright (c) 2006 Chad Mynhier.
3
 * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
3
 *
4
 *
4
 * Permission to use, copy, modify, and distribute this software for any
5
 * Permission to use, copy, modify, and distribute this software for any
5
 * purpose with or without fee is hereby granted, provided that the above
6
 * purpose with or without fee is hereby granted, provided that the above
Lines 398-405 Link Here
398
	    priv_delset(pset, PRIV_NET_ACCESS) != 0 ||
399
	    priv_delset(pset, PRIV_NET_ACCESS) != 0 ||
399
#endif
400
#endif
400
	    priv_delset(pset, PRIV_PROC_EXEC) != 0 ||
401
	    priv_delset(pset, PRIV_PROC_EXEC) != 0 ||
401
	    priv_delset(pset, PRIV_PROC_INFO) != 0 ||
402
	    priv_delset(pset, PRIV_PROC_INFO) != 0)
402
	    priv_delset(pset, PRIV_PROC_SESSION) != 0)
403
		fatal("priv_delset: %s", strerror(errno));
403
		fatal("priv_delset: %s", strerror(errno));
404
404
405
	if (setppriv(PRIV_SET, PRIV_PERMITTED, pset) != 0 ||
405
	if (setppriv(PRIV_SET, PRIV_PERMITTED, pset) != 0 ||

Return to bug 3030