1.\" $NetBSD: secmodel_suser.9,v 1.4 2009/10/03 07:37:01 wiz Exp $ 2.\" 3.\" Copyright (c) 2009 Elad Efrat <elad@NetBSD.org> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. The name of the author may not be used to endorse or promote products 15.\" derived from this software without specific prior written permission. 16.\" 17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27.\" 28.Dd October 2, 2009 29.Dt SECMODEL_SUSER 9 30.Os 31.Sh NAME 32.Nm secmodel_suser 33.Nd super-user security model 34.Sh DESCRIPTION 35.Nm 36implements the traditional 37.Em super-user 38(root) as the user with effective user-id 0. 39The 40.Em super-user 41is the host administrator, considered to have higher privileges than other 42users. 43.Pp 44The following 45.Xr sysctl 3 46variables are exported: 47.Bl -tag -width compact 48.It security.models.suser.curtain 49If non-zero, will filter returned objects according to the user-id 50requesting information about them, preventing from users any access to 51objects they don't own. 52.Pp 53At the moment, it affects 54.Xr ps 1 , 55.Xr netstat 1 56(for 57.Dv PF_INET , 58.Dv PF_INET6 , 59and 60.Dv PF_UNIX 61PCBs), and 62.Xr w 1 . 63.It security.models.suser.usermount 64Allow non-superuser mounts. 65.Pp 66If non-zero, file-systems are allowed to be mounted by an ordinary user who 67owns the point 68.Ar node 69and has at least read access to the 70.Ar special 71device 72.Xr mount 8 73arguments. 74Finally, the flags 75.Cm nosuid 76and 77.Cm nodev 78must be given for non-superuser mounts. 79.El 80.Sh SEE ALSO 81.Xr kauth 9 , 82.Xr secmodel 9 , 83.Xr secmodel_bsd44 9 84.Sh AUTHORS 85.An Elad Efrat Aq elad@NetBSD.org 86