-/* $OpenBSD: kern_pledge.c,v 1.202 2017/04/11 15:55:41 bluhm Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.203 2017/04/13 04:06:46 guenther Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
[SYS_getegid] = PLEDGE_STDIO,
[SYS_getresgid] = PLEDGE_STDIO,
[SYS_getgroups] = PLEDGE_STDIO,
- [SYS_getlogin59] = PLEDGE_STDIO,
[SYS_getlogin_r] = PLEDGE_STDIO,
[SYS_getpgrp] = PLEDGE_STDIO,
[SYS_getpgid] = PLEDGE_STDIO,
-/* $OpenBSD: kern_prot.c,v 1.68 2017/04/13 03:52:25 guenther Exp $ */
+/* $OpenBSD: kern_prot.c,v 1.69 2017/04/13 04:06:46 guenther Exp $ */
/* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */
/*
return (0);
}
-/*
- * Get login name, if available.
- */
-int
-sys_getlogin59(struct proc *p, void *v, register_t *retval)
-{
- struct sys_getlogin59_args /* {
- syscallarg(char *) namebuf;
- syscallarg(u_int) namelen;
- } */ *uap = v;
- struct session *s = p->p_p->ps_pgrp->pg_session;
-
- if (SCARG(uap, namelen) > sizeof(s->s_login))
- SCARG(uap, namelen) = sizeof(s->s_login);
- return (copyout((caddr_t)s->s_login,
- (caddr_t)SCARG(uap, namebuf), SCARG(uap, namelen)));
-}
-
/*
* Get login name, if available.
*/
-; $OpenBSD: syscalls.master,v 1.174 2016/09/04 17:22:40 jsing Exp $
+; $OpenBSD: syscalls.master,v 1.175 2017/04/13 04:06:46 guenther Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
struct sigaction *osa); }
47 STD NOLOCK { gid_t sys_getgid(void); }
48 STD NOLOCK { int sys_sigprocmask(int how, sigset_t mask); }
-49 STD { int sys_getlogin59(char *namebuf, u_int namelen); }
+49 OBSOL ogetlogin
50 STD { int sys_setlogin(const char *namebuf); }
#ifdef ACCOUNTING
51 STD { int sys_acct(const char *path); }