udp_usrreq.c (1e4d7da707ea9277eb623e87861e8fe1affe8936) | udp_usrreq.c (56f21b9d74a516a6c2f67d09e1b6c588bfa54c6a) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 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 --- 670 unchanged lines hidden (view full) --- 679static int 680udp_getcred(SYSCTL_HANDLER_ARGS) 681{ 682 struct xucred xuc; 683 struct sockaddr_in addrs[2]; 684 struct inpcb *inp; 685 int error, s; 686 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 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 --- 670 unchanged lines hidden (view full) --- 679static int 680udp_getcred(SYSCTL_HANDLER_ARGS) 681{ 682 struct xucred xuc; 683 struct sockaddr_in addrs[2]; 684 struct inpcb *inp; 685 int error, s; 686 |
687 error = suser_cred(req->td->td_ucred, PRISON_ROOT); | 687 error = suser_cred(req->td->td_ucred, SUSER_ALLOWJAIL); |
688 if (error) 689 return (error); 690 error = SYSCTL_IN(req, addrs, sizeof(addrs)); 691 if (error) 692 return (error); 693 s = splnet(); 694 INP_INFO_RLOCK(&udbinfo); 695 inp = in_pcblookup_hash(&udbinfo, addrs[1].sin_addr, addrs[1].sin_port, --- 435 unchanged lines hidden --- | 688 if (error) 689 return (error); 690 error = SYSCTL_IN(req, addrs, sizeof(addrs)); 691 if (error) 692 return (error); 693 s = splnet(); 694 INP_INFO_RLOCK(&udbinfo); 695 inp = in_pcblookup_hash(&udbinfo, addrs[1].sin_addr, addrs[1].sin_port, --- 435 unchanged lines hidden --- |