sandbox.c (243730) | sandbox.c (243734) |
---|---|
1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Pawel Jakub Dawidek under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Pawel Jakub Dawidek under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/sandbox.c#1 $ | 29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/sandbox.c#3 $ |
30 */ 31 | 30 */ 31 |
32#ifdef HAVE_CONFIG_H 33#include "config.h" 34#endif | 32#include <config/config.h> |
35 36#include <sys/param.h> 37#ifdef HAVE_JAIL 38#include <sys/jail.h> 39#endif 40#ifdef HAVE_CAP_ENTER 41#include <sys/capability.h> 42#endif 43 44#include <errno.h> 45#include <pwd.h> 46#include <stdarg.h> 47#include <stdbool.h> 48#include <stdio.h> 49#include <stdlib.h> 50#include <strings.h> 51#include <unistd.h> 52 | 33 34#include <sys/param.h> 35#ifdef HAVE_JAIL 36#include <sys/jail.h> 37#endif 38#ifdef HAVE_CAP_ENTER 39#include <sys/capability.h> 40#endif 41 42#include <errno.h> 43#include <pwd.h> 44#include <stdarg.h> 45#include <stdbool.h> 46#include <stdio.h> 47#include <stdlib.h> 48#include <strings.h> 49#include <unistd.h> 50 |
53#include <pjdlog.h> 54 | 51#include "pjdlog.h" |
55#include "sandbox.h" 56 57static int 58groups_compare(const void *grp0, const void *grp1) 59{ 60 gid_t gr0 = *(const gid_t *)grp0; 61 gid_t gr1 = *(const gid_t *)grp1; 62 --- 175 unchanged lines hidden --- | 52#include "sandbox.h" 53 54static int 55groups_compare(const void *grp0, const void *grp1) 56{ 57 gid_t gr0 = *(const gid_t *)grp0; 58 gid_t gr1 = *(const gid_t *)grp1; 59 --- 175 unchanged lines hidden --- |