117c5113aSChris Costello.\" Copyright (c) 2002 Networks Associates Technology, Inc. 217c5113aSChris Costello.\" All rights reserved. 317c5113aSChris Costello.\" 45792da74SChris Costello.\" This software was developed for the FreeBSD Project by Chris Costello 55792da74SChris Costello.\" at Safeport Network Services and Network Associates Laboratories, the 65792da74SChris Costello.\" Security Research Division of Network Associates, Inc. under 717c5113aSChris Costello.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 817c5113aSChris Costello.\" DARPA CHATS research program. 917c5113aSChris Costello.\" 1017c5113aSChris Costello.\" Redistribution and use in source and binary forms, with or without 1117c5113aSChris Costello.\" modification, are permitted provided that the following conditions 1217c5113aSChris Costello.\" are met: 1317c5113aSChris Costello.\" 1. Redistributions of source code must retain the above copyright 1417c5113aSChris Costello.\" notice, this list of conditions and the following disclaimer. 1517c5113aSChris Costello.\" 2. Redistributions in binary form must reproduce the above copyright 1617c5113aSChris Costello.\" notice, this list of conditions and the following disclaimer in the 1717c5113aSChris Costello.\" documentation and/or other materials provided with the distribution. 1817c5113aSChris Costello.\" 1917c5113aSChris Costello.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 2017c5113aSChris Costello.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2117c5113aSChris Costello.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2217c5113aSChris Costello.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 2317c5113aSChris Costello.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2417c5113aSChris Costello.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2517c5113aSChris Costello.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2617c5113aSChris Costello.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2717c5113aSChris Costello.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2817c5113aSChris Costello.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2917c5113aSChris Costello.\" SUCH DAMAGE. 3017c5113aSChris Costello.\" 31208a8b95SEdward Tomasz Napierala.Dd July 25, 2015 3217c5113aSChris Costello.Dt MAC_SEEOTHERUIDS 4 33aa12cea2SUlrich Spörlein.Os 3417c5113aSChris Costello.Sh NAME 3517c5113aSChris Costello.Nm mac_seeotheruids 363cc3bf52SRuslan Ermilov.Nd "simple policy controlling whether users see other users" 3717c5113aSChris Costello.Sh SYNOPSIS 383cc3bf52SRuslan ErmilovTo compile the 3917c5113aSChris Costellopolicy into your kernel, place the following lines in your kernel 4017c5113aSChris Costelloconfiguration file: 413cc3bf52SRuslan Ermilov.Bd -ragged -offset indent 4217c5113aSChris Costello.Cd "options MAC" 4317c5113aSChris Costello.Cd "options MAC_SEEOTHERUIDS" 443cc3bf52SRuslan Ermilov.Ed 4517c5113aSChris Costello.Pp 4617c5113aSChris CostelloAlternately, to load the module at boot time, place the following line 4717c5113aSChris Costelloin your kernel configuration file: 483cc3bf52SRuslan Ermilov.Bd -ragged -offset indent 4917c5113aSChris Costello.Cd "options MAC" 503cc3bf52SRuslan Ermilov.Ed 5117c5113aSChris Costello.Pp 5217c5113aSChris Costelloand in 53c2d6966aSPhilippe Charnier.Xr loader.conf 5 : 543cc3bf52SRuslan Ermilov.Bd -literal -offset indent 553cc3bf52SRuslan Ermilovmac_seeotheruids_load="YES" 563cc3bf52SRuslan Ermilov.Ed 5717c5113aSChris Costello.Sh DESCRIPTION 5817c5113aSChris CostelloThe 5917c5113aSChris Costello.Nm 6017c5113aSChris Costellopolicy module, when enabled, denies users to see processes or sockets owned 6117c5113aSChris Costelloby other users. 6217c5113aSChris Costello.Pp 6317c5113aSChris CostelloTo enable 6417c5113aSChris Costello.Nm , 6517c5113aSChris Costelloset the sysctl OID 6617c5113aSChris Costello.Va security.mac.seeotheruids.enabled 673cc3bf52SRuslan Ermilovto 1. 68e57df0d8STom RhodesTo permit superuser awareness of other credentials by virtue of privilege, 69e57df0d8STom Rhodesset the sysctl OID 70e57df0d8STom Rhodes.Va security.mac.seeotheruids.suser_privileged 71e57df0d8STom Rhodesto 1. 7217c5113aSChris Costello.Pp 7317c5113aSChris CostelloTo allow users to see processes and sockets owned by the same primary group, 7417c5113aSChris Costelloset the sysctl OID 7517c5113aSChris Costello.Va security.mac.seeotheruids.primarygroup_enabled 763cc3bf52SRuslan Ermilovto 1. 7717c5113aSChris Costello.Pp 7817c5113aSChris CostelloTo allow processes with a specific group ID to be exempt from the policy, 7917c5113aSChris Costelloset the sysctl OID 8017c5113aSChris Costello.Va security.mac.seeotheruids.specificgid_enabled 813cc3bf52SRuslan Ermilovto 1, and 8217c5113aSChris Costello.Va security.mac.seeotheruids.specificgid 833cc3bf52SRuslan Ermilovto the group ID to be exempted. 8417c5113aSChris Costello.Ss Label Format 8517c5113aSChris CostelloNo labels are defined for 8617c5113aSChris Costello.Nm . 8717c5113aSChris Costello.Sh SEE ALSO 88ccf09d7cSChris Costello.Xr mac 4 , 8917c5113aSChris Costello.Xr mac_biba 4 , 9017c5113aSChris Costello.Xr mac_bsdextended 4 , 91*287d467cSMitchell Horne.Xr mac_ddb 4 , 92057baf37SChris Costello.Xr mac_ifoff 4 , 939cad8863SChris Costello.Xr mac_lomac 4 , 9417c5113aSChris Costello.Xr mac_mls 4 , 953cc3bf52SRuslan Ermilov.Xr mac_none 4 , 96057baf37SChris Costello.Xr mac_partition 4 , 970c6e926fSChris Costello.Xr mac_portacl 4 , 9817c5113aSChris Costello.Xr mac_test 4 , 9917c5113aSChris Costello.Xr mac 9 10017c5113aSChris Costello.Sh HISTORY 10117c5113aSChris CostelloThe 10217c5113aSChris Costello.Nm 10317c5113aSChris Costellopolicy module first appeared in 10417c5113aSChris Costello.Fx 5.0 1053cc3bf52SRuslan Ermilovand was developed by the 1063cc3bf52SRuslan Ermilov.Tn TrustedBSD 1073cc3bf52SRuslan ErmilovProject. 10817c5113aSChris Costello.Sh AUTHORS 10917c5113aSChris CostelloThis software was contributed to the 11017c5113aSChris Costello.Fx 11117c5113aSChris CostelloProject by Network Associates Labs, 11217c5113aSChris Costellothe Security Research Division of Network Associates 1135203edcdSRuslan ErmilovInc. 1145203edcdSRuslan Ermilovunder DARPA/SPAWAR contract N66001-01-C-8035 1153cc3bf52SRuslan Ermilov.Pq Dq CBOSS , 11617c5113aSChris Costelloas part of the DARPA CHATS research program. 11717c5113aSChris Costello.Sh BUGS 11817c5113aSChris CostelloWhile the MAC Framework design is intended to support the containment of 11917c5113aSChris Costellothe root user, not all attack channels are currently protected by entry 12017c5113aSChris Costellopoint checks. 12117c5113aSChris CostelloAs such, MAC Framework policies should not be relied on, in isolation, 12217c5113aSChris Costelloto protect against a malicious privileged user. 123