getpmac.c (09c817ba36db7c3a4ff5e25ac55816ca181a403d) getpmac.c (b2beb67f92e750678094dbcc0a613c5b5314c38f)
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Network
6 * Associates Laboratories, the Security Research Division of Network
7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.

--- 89 unchanged lines hidden (view full) ---

98 perror("mac_prepare");
99 return (-1);
100 }
101
102 if (pid_set) {
103 error = mac_get_pid(pid, label);
104 if (error)
105 perror("mac_get_pid");
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Network
6 * Associates Laboratories, the Security Research Division of Network
7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.

--- 89 unchanged lines hidden (view full) ---

98 perror("mac_prepare");
99 return (-1);
100 }
101
102 if (pid_set) {
103 error = mac_get_pid(pid, label);
104 if (error)
105 perror("mac_get_pid");
106 }
107 else {
106 } else {
108 error = mac_get_proc(label);
109 if (error)
110 perror("mac_get_proc");
111 }
112 if (error) {
113 mac_free(label);
114 exit (-1);
115 }

--- 13 unchanged lines hidden ---
107 error = mac_get_proc(label);
108 if (error)
109 perror("mac_get_proc");
110 }
111 if (error) {
112 mac_free(label);
113 exit (-1);
114 }

--- 13 unchanged lines hidden ---