Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jan 2017 20:48:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215881] mlslabel had "" value, instead of none
Message-ID:  <bug-215881-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215881

            Bug ID: 215881
           Summary: mlslabel had "" value, instead of none
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: apenner.it@gmail.com

Description:
zfs get mlslabel return "" value, instead of "none" defined in
sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h=20
at 319=20
>> #define	ZFS_MLSLABEL_DEFAULT	"none"

Example (FreeBSD 11):
[root@freebsd /]# zfs get  mlslabel pool1/fs/fs1
NAME          PROPERTY  VALUE     SOURCE
pool1/fs/fs1  mlslabel            -

Example (OmniOS):
[root@unknown ~]# zfs get mlslabel pool1/fs/fs1
NAME          PROPERTY  VALUE     SOURCE
pool1/fs/fs1    mlslabel        none    default

Example (Linux):
[root@localhost /home]# zfs get mlslabel pool1/fs/fs1
NAME          PROPERTY  VALUE     SOURCE
pool1/fs/fs1    mlslabel        none    default

Effect:
it's broke shell scripts which expect some value or "none" in third (VALUE)
field.
In others OS (Illumous, Linux, SunOS) it's has default value - "none"

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215881-8>