Deleted Added
full compact
ucred.h (256281) ucred.h (293897)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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 * @(#)ucred.h 8.4 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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 * @(#)ucred.h 8.4 (Berkeley) 1/9/95
30 * $FreeBSD: stable/10/sys/sys/ucred.h 219304 2011-03-05 12:40:35Z trasz $
30 * $FreeBSD: stable/10/sys/sys/ucred.h 293897 2016-01-14 09:11:42Z glebius $
31 */
32
33#ifndef _SYS_UCRED_H_
34#define _SYS_UCRED_H_
35
36#include <bsm/audit.h>
37
38struct loginclass;

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

99void change_euid(struct ucred *newcred, struct uidinfo *euip);
100void change_rgid(struct ucred *newcred, gid_t rgid);
101void change_ruid(struct ucred *newcred, struct uidinfo *ruip);
102void change_svgid(struct ucred *newcred, gid_t svgid);
103void change_svuid(struct ucred *newcred, uid_t svuid);
104void crcopy(struct ucred *dest, struct ucred *src);
105struct ucred *crcopysafe(struct proc *p, struct ucred *cr);
106struct ucred *crdup(struct ucred *cr);
31 */
32
33#ifndef _SYS_UCRED_H_
34#define _SYS_UCRED_H_
35
36#include <bsm/audit.h>
37
38struct loginclass;

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

99void change_euid(struct ucred *newcred, struct uidinfo *euip);
100void change_rgid(struct ucred *newcred, gid_t rgid);
101void change_ruid(struct ucred *newcred, struct uidinfo *ruip);
102void change_svgid(struct ucred *newcred, gid_t svgid);
103void change_svuid(struct ucred *newcred, uid_t svuid);
104void crcopy(struct ucred *dest, struct ucred *src);
105struct ucred *crcopysafe(struct proc *p, struct ucred *cr);
106struct ucred *crdup(struct ucred *cr);
107void crextend(struct ucred *cr, int n);
107void cred_update_thread(struct thread *td);
108void crfree(struct ucred *cr);
109struct ucred *crget(void);
110struct ucred *crhold(struct ucred *cr);
111int crshared(struct ucred *cr);
112void cru2x(struct ucred *cr, struct xucred *xcr);
113void crsetgroups(struct ucred *cr, int n, gid_t *groups);
114int groupmember(gid_t gid, struct ucred *cred);
115#endif /* _KERNEL */
116
117#endif /* !_SYS_UCRED_H_ */
108void cred_update_thread(struct thread *td);
109void crfree(struct ucred *cr);
110struct ucred *crget(void);
111struct ucred *crhold(struct ucred *cr);
112int crshared(struct ucred *cr);
113void cru2x(struct ucred *cr, struct xucred *xcr);
114void crsetgroups(struct ucred *cr, int n, gid_t *groups);
115int groupmember(gid_t gid, struct ucred *cred);
116#endif /* _KERNEL */
117
118#endif /* !_SYS_UCRED_H_ */