search for: priv_net_privaddr

Displaying 2 results from an estimated 2 matches for "priv_net_privaddr".

2006 Oct 31
0
6414703 Add PRIV_NET_PRIVADDR and PRIV_SYS_NET_CONFIG to set of privileges for fmd
Author: jrutt Repository: /hg/zfs-crypto/gate Revision: c8dfb69429f5545b7d7b1ccbc1cc0a48bd7d875e Log message: 6414703 Add PRIV_NET_PRIVADDR and PRIV_SYS_NET_CONFIG to set of privileges for fmd Files: update: usr/src/cmd/fm/fmd/common/fmd_main.c
2008 Nov 21
2
[PATCH] drop root privileges on solaris, request for testing
...ties.h" + +#ifdef HAVE_SETPPRIV + +#include <priv.h> + +void drop_capabilities(void) +{ + static const char* privs[] = { + "PRIV_PROC_FORK", + "PRIV_PROC_EXEC", + "PRIV_FILE_CHOWN", + "PRIV_PROC_SETID", + "PRIV_PROC_CHROOT", + "PRIV_NET_PRIVADDR", + "PRIV_FILE_DAC_READ", + "PRIV_FILE_DAC_WRITE", + NULL + }, **p; + priv_set_t *priv_set; + int ret; + + priv_set = priv_allocset(); + if (priv_set == NULL) { + i_warning("Can't allocate memory for privilege set: %m"); + return; + } + + priv_emptyset(pr...