[Midnightbsd-cvs] src [10319] trunk/usr.sbin/ugidfw/ugidfw.c: tag
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jun 3 15:09:16 EDT 2018
Revision: 10319
http://svnweb.midnightbsd.org/src/?rev=10319
Author: laffer1
Date: 2018-06-03 15:09:16 -0400 (Sun, 03 Jun 2018)
Log Message:
-----------
tag
Modified Paths:
--------------
trunk/usr.sbin/ugidfw/Makefile
trunk/usr.sbin/ugidfw/ugidfw.8
trunk/usr.sbin/ugidfw/ugidfw.c
Property Changed:
----------------
trunk/usr.sbin/ugidfw/ugidfw.8
Modified: trunk/usr.sbin/ugidfw/Makefile
===================================================================
--- trunk/usr.sbin/ugidfw/Makefile 2018-06-03 19:08:43 UTC (rev 10318)
+++ trunk/usr.sbin/ugidfw/Makefile 2018-06-03 19:09:16 UTC (rev 10319)
@@ -1,4 +1,5 @@
-# $FreeBSD: src/usr.sbin/ugidfw/Makefile,v 1.4 2003/04/04 17:49:20 obrien Exp $
+# $MidnightBSD$
+# $FreeBSD: stable/10/usr.sbin/ugidfw/Makefile 113091 2003-04-04 17:49:21Z obrien $
PROG= ugidfw
MAN= ugidfw.8
Modified: trunk/usr.sbin/ugidfw/ugidfw.8
===================================================================
--- trunk/usr.sbin/ugidfw/ugidfw.8 2018-06-03 19:08:43 UTC (rev 10318)
+++ trunk/usr.sbin/ugidfw/ugidfw.8 2018-06-03 19:09:16 UTC (rev 10319)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2002, 2004 Networks Associates Technology, Inc.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD: src/usr.sbin/ugidfw/ugidfw.8,v 1.9 2006/04/23 17:06:18 dwmalone Exp $
+.\" $FreeBSD: stable/10/usr.sbin/ugidfw/ugidfw.8 210641 2010-07-30 11:58:18Z uqs $
.\"
.Dd February 24, 2004
.Dt UGIDFW 8
@@ -223,8 +224,7 @@
.Ar uid
and/or
.Ar gid .
-A range of uids/gids can be specified,
-seperated by a colon.
+A range of uids/gids can be specified, separated by a colon.
The subject can be required to be in a particular jail with the
.Ar jailid .
.It Xo
@@ -274,9 +274,9 @@
.Ar uid
and/or
.Ar gid .
-A range of uids/gids can be specified, seperated by a colon.
+A range of uids/gids can be specified, separated by a colon.
The object can be required to be in a particular filesystem by
-specifing the filesystem using
+specifying the filesystem using
.Cm filesys .
Note,
if the filesystem is unmounted and remounted,
Property changes on: trunk/usr.sbin/ugidfw/ugidfw.8
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.sbin/ugidfw/ugidfw.c
===================================================================
--- trunk/usr.sbin/ugidfw/ugidfw.c 2018-06-03 19:08:43 UTC (rev 10318)
+++ trunk/usr.sbin/ugidfw/ugidfw.c 2018-06-03 19:09:16 UTC (rev 10319)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2002, 2004 Networks Associates Technology, Inc.
* All rights reserved.
@@ -30,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/usr.sbin/ugidfw/ugidfw.c,v 1.6 2006/04/23 17:06:18 dwmalone Exp $");
+__FBSDID("$FreeBSD: stable/10/usr.sbin/ugidfw/ugidfw.c 186480 2008-12-24 22:40:13Z rwatson $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -71,7 +72,7 @@
void
add_rule(int argc, char *argv[])
{
- char errstr[BUFSIZ];
+ char errstr[BUFSIZ], charstr[BUFSIZ];
struct mac_bsdextended_rule rule;
int error, rulenum;
@@ -86,7 +87,10 @@
warnx("%s", errstr);
return;
}
- printf("Added rule %d\n", rulenum);
+ if (bsde_rule_to_string(&rule, charstr, BUFSIZ) == -1)
+ warnx("Added rule, but unable to print string.");
+ else
+ printf("%d %s\n", rulenum, charstr);
}
void
More information about the Midnightbsd-cvs
mailing list