selinux on zfs(onlinux)
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504
Signature · 1 line
-- Matthew Thode
Hello,
Excuse me, But ZFS is a patented technology Owned by Oracle Inc., and only its implementation in CDDL was/is free.
CDDL is incompatible with GPL,
How come that ZFS can be used as root File System on Linux then?! , ZFS cannot be integrated into kernel due to Legal reasons as explained, unless every recipient makes modification and compilation himself/herself.
Even if you make a Module you cannot distribute it as binary, subject to derivative work.
If you distribute it as Module you must distribute source code, and the recipient must compile the whole kernel (on every system that is being deployed).
If you compile into binary module and distribute it, then due to linking you still violate CDDL (derivative work)
All may result in getting sued by Oracle Inc. due to Patent violation.
Best regards,
Patrick K.
Quoted 7 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
Quoted 8 lines
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 21 lines · ITF
Hello,
Excuse me, But ZFS is a patented technology Owned by Oracle Inc., and only its implementation in CDDL was/is free.
CDDL is incompatible with GPL,
How come that ZFS can be used as root File System on Linux then?! , ZFS cannot be integrated into kernel due to Legal reasons as explained, unless every recipient makes modification and compilation himself/herself.
Even if you make a Module you cannot distribute it as binary, subject to derivative work.
If you distribute it as Module you must distribute source code, and the recipient must compile the whole kernel (on every system that is being deployed).
If you compile into binary module and distribute it, then due to linking you still violate CDDL (derivative work)
Quoted 23 lines
All may result in getting sued by Oracle Inc. due to Patent violation.
Best regards,
Patrick K.
Quoted 15 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504
zfs version 28 was released under the cddl, which means it is not able to be integrated statically into the kernel and then redistributed (my interpretation). I can create my own static kernel image with zfs and use it on my own though (and this is my preferred method of using it).
You are also able to use proprietary kernel modules as well. Ever use the AFS (filesystem) on Linux? Here is a link as to what Linus has to think on the mater.
http://linuxmafia.com/faq/Kernel/proprietary-kernel-modules.html
The CDDL provides a patent grant and the conflict only affects distribution of linked binaries on the GPL end. Since the modules are from Solaris, they are not considered a derived work, so the derived work in the GPL is irrelevant. It is my interpretation that I can make and distribute a module, but that is not the question here.
So, do you think the name for that zfs property would be accurate (rootcontext)?
Signature · 1 line
-- Matthew Thode
Quoted 46 lines · Matthew Thode
Quoted 21 lines · ITF
Hello,
Excuse me, But ZFS is a patented technology Owned by Oracle Inc., and only its implementation in CDDL was/is free.
CDDL is incompatible with GPL,
How come that ZFS can be used as root File System on Linux then?! , ZFS cannot be integrated into kernel due to Legal reasons as explained, unless every recipient makes modification and compilation himself/herself.
Even if you make a Module you cannot distribute it as binary, subject to derivative work.
If you distribute it as Module you must distribute source code, and the recipient must compile the whole kernel (on every system that is being deployed).
If you compile into binary module and distribute it, then due to linking you still violate CDDL (derivative work)
Quoted 23 lines
All may result in getting sued by Oracle Inc. due to Patent violation.
Best regards,
Patrick K.
Quoted 15 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504
Quoted 5 lines
zfs version 28 was released under the cddl, which means it is not able to be integrated statically into the kernel and then redistributed (my interpretation). I can create my own static kernel image with zfs and use it on my own though (and this is my preferred method of using it).
I believe you need to consult with a lawyer, that's not entirely right, I'm very well aware of that.(FreeBSD and Illumos - former OpenSolaris- The question was rhetorical making you pay attention to the legal facts)
Quoted 5 lines
You are also able to use proprietary kernel modules as well. Ever use the AFS (filesystem) on Linux? Here is a link as to what Linus has to think on the mater.
http://linuxmafia.com/faq/Kernel/proprietary-kernel-modules.html
OpenAFS has different License it is IPL. Do you pay attention to the licenses? You need to ask your lawyer.
And it seems you do not read what Linus wrote, he admits about modules " ... (they can potentially be considered derived works, even if you don't actually link them into the kernel, per se) ..."
He somewhat wants to ignore that, as long as the IPR owner has no issue Linus won't cause trouble, but Oracle Inc. has issues on this, They are selling ZFS Storage and ZFS is a core feature of Solaris, They have very clear commercial interest in it, in fact originally CDDL was chosen (at SUN) to some extent due to keeping their rights.
Quoted 6 lines
The CDDL provides a patent grant and the conflict only affects distribution of linked binaries on the GPL end. Since the modules are from Solaris, they are not considered a derived work, so the derived work in the GPL is irrelevant. It is my interpretation that I can make and distribute a module, but that is not the question here.
This is different, The owner of the IPR (Intellectual Property Right) Originally SUN Micros systems Inc and Now Oracle Inc, has not created that Module, and has not granted such right, only CDDL version is free and comes with granted right not infringing the patents.
When third parties create module for Kernel they combine it with enough code and adapt it with Linux Kernel that constitutes a derivative work, which is in case of kernel it should be in GPL, GPL requires you to make all the code GPL, you cannot change the License of the CDDL parts (according to CDDL grant of rights), if you do that you have terminated your agreement and you lose granted rights to patents.
When you create the Module in the case of File system you make derivative work of Linux then the entire work needs to be in GPL (While CDDL license does not permit you to change the license of those parts that are already in CDDL)
In an enterprise if you deploy such Module, and use outsourced technicians or companies then they are distributing illegal and unlicensed code, since the fair usage case is when the owner of the system applies modification to his/her/its system, if third parties do so it is a clear case of distribution.
Thus no sane and law abiding management would let you use that.
Please see this page:
https://blogs.oracle.com/chandan/entry/copyrights_licenses_and_cddl_illustrated
Quoted 2 lines
So, do you think the name for that zfs property would be accurate (rootcontext)?
The correct legal method of using ZFS under Linux is using it through (iSCSI, Fiber Channel, ATAoE) SAN or NAS on FreeBSD, Illumos, Solaris or Oracle's ZFS Storage systems.
Notice: Legal issues explained in this message are for information purposes only and should not be considered as legal advice, please consult with your lawyer for legal advice.
Best Regards,
Patrick K.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Sorry If I'm double posting, My mail client software crashed during drafting answer, so I don't know if mine posted or not.
Quoted 46 lines · Matthew Thode
Quoted 21 lines · ITF
Hello,
Excuse me, But ZFS is a patented technology Owned by Oracle Inc., and only its implementation in CDDL was/is free.
CDDL is incompatible with GPL,
How come that ZFS can be used as root File System on Linux then?! , ZFS cannot be integrated into kernel due to Legal reasons as explained, unless every recipient makes modification and compilation himself/herself.
Even if you make a Module you cannot distribute it as binary, subject to derivative work.
If you distribute it as Module you must distribute source code, and the recipient must compile the whole kernel (on every system that is being deployed).
If you compile into binary module and distribute it, then due to linking you still violate CDDL (derivative work)
Quoted 23 lines
All may result in getting sued by Oracle Inc. due to Patent violation.
Best regards,
Patrick K.
Quoted 15 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504
Quoted 5 lines
zfs version 28 was released under the cddl, which means it is not able to be integrated statically into the kernel and then redistributed (my interpretation). I can create my own static kernel image with zfs and use it on my own though (and this is my preferred method of using it).
I believe you need to consult with a lawyer, that's not entirely right, I'm very well aware of that.(FreeBSD and Illumos - former OpenSolaris- The question was rhetorical making you pay attention to the legal facts)
Quoted 5 lines
You are also able to use proprietary kernel modules as well. Ever use the AFS (filesystem) on Linux? Here is a link as to what Linus has to think on the mater.
http://linuxmafia.com/faq/Kernel/proprietary-kernel-modules.html
OpenAFS has different License it is IPL. Do you pay attention to the licenses? You need to ask your lawyer.
And it seems you do not read what Linus wrote, he admits about modules " ... (they can potentially be considered derived works, even if you don't actually link them into the kernel, per se) ..."
He somewhat wants to ignore that, as long as the IPR owner has no issue Linus won't cause trouble, but Oracle Inc. has issues on this, They are selling ZFS Storage and ZFS is a core feature of Solaris, They have very clear commercial interest in it, in fact originally CDDL was chosen (at SUN) to some extent due to keeping their rights.
Quoted 6 lines
The CDDL provides a patent grant and the conflict only affects distribution of linked binaries on the GPL end. Since the modules are from Solaris, they are not considered a derived work, so the derived work in the GPL is irrelevant. It is my interpretation that I can make and distribute a module, but that is not the question here.
This is different, The owner of the IPR (Intellectual Property Right) Originally SUN Micros systems Inc and Now Oracle Inc, has not created that Module, and has not granted such right, only CDDL version is free and comes with granted right not infringing the patents.
When third parties create module for Kernel they combine it with enough code and adapt it with Linux Kernel that constitutes a derivative work, which is in case of kernel it should be in GPL, GPL requires you to make all the code GPL, you cannot change the License of the CDDL parts (according to CDDL grant of rights), if you do that you would terminate your agreement and you would lose granted rights to patents.
When you create the Module in case of File system you make derivative work of Linux then the entire work needs to be in GPL (While CDDL license does not permit you to change the license of those parts that are already in CDDL)
In an enterprise if you deploy such Module, and use outsourced technicians or companies then they are distributing illegal and unlicensed code, since the fair usage case is when the owner of the system applies modification to his/her/its system, if third parties do so it is a clear case of distribution.
Thus no sane and law abiding management would let you use that.
Please see this page:
https://blogs.oracle.com/chandan/entry/copyrights_licenses_and_cddl_illustrated
Quoted 2 lines
So, do you think the name for that zfs property would be accurate (rootcontext)?
The correct legal method of using ZFS under Linux is using it through (iSCSI, Fiber Channel, ATAoE) SAN or NAS on FreeBSD, Illumos, Solaris or Oracle's ZFS Storage systems. (or other commercial ZFS solutions based on these OSes)
What you ask here is subject to "promotion and facilitation of patent infringement" which makes people liable under tort law, like many sites out there promoting ZFS workarounds for Linux Kernel.
Notice: Legal issues explained in this message are for information purposes only and should not be considered as legal advice, please consult with your lawyer for legal advice.
Best Regards,
Patrick K.
P.S. Sorry If I'm double posting, My mail client software crashed during drafting answer, so I don't know if mine posted or not.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
Quoted 6 lines
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504
The mount options interpreted by SELinux are:
1. context= (treat all inodes in the filesystem as if they had the specified security context regardless of any on-disk extended attribute value),
2. fscontext= (treat the filesystem/superblock as if it had the specified security context, used in certain permission checks affecting filesystem operations like mount and umount),
3. rootcontext= (treat the root inode in the filesystem as if it had the specified security context but the normal behavior for the rest, useful for assigning an initial context to a root directory of e.g. a tmpfs mount), and
4. defcontext= (treat any file that lacks an extended attribute as if it had the specified security context).
The context you specified is a fscontext (fs_t), not one normally used for inodes. But I'm not sure which one you meant to use or whether you ultimately ought to support them all.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 29 lines · Stephen Smalley
Quoted 7 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
Quoted 6 lines
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504The mount options interpreted by SELinux are:
1. context= (treat all inodes in the filesystem as if they had the specified security context regardless of any on-disk extended attribute value),2. fscontext= (treat the filesystem/superblock as if it had the specified security context, used in certain permission checks affecting filesystem operations like mount and umount),
3. rootcontext= (treat the root inode in the filesystem as if it had the specified security context but the normal behavior for the rest, useful for assigning an initial context to a root directory of e.g. a tmpfs mount), and
Quoted 6 lines
4. defcontext= (treat any file that lacks an extended attribute as if it had the specified security context).
The context you specified is a fscontext (
fs_t), not one normally used for inodes. But I'm not sure which one you meant to use or whether you ultimately ought to support them all.
Possibly a simpler method would be to just pass through any mount options unknown to zfs to the kernel to allow interpretation and use by the vfs and/or security modules. That would also allow use with other security modules.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 33 lines · Stephen Smalley
Quoted 32 lines · Stephen Smalley
Quoted 7 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context to on mount.
I am going to petition for this to be added as a property, but should it be called rootcontext (want to make sure it's valid).
Quoted 6 lines
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504The mount options interpreted by SELinux are:
1. context= (treat all inodes in the filesystem as if they had the specified security context regardless of any on-disk extended attribute value),2. fscontext= (treat the filesystem/superblock as if it had the specified security context, used in certain permission checks affecting filesystem operations like mount and umount),
3. rootcontext= (treat the root inode in the filesystem as if it had the specified security context but the normal behavior for the rest, useful for assigning an initial context to a root directory of e.g. a tmpfs mount), and
4. defcontext= (treat any file that lacks an extended attribute as if it had the specified security context).
Quoted 10 lines
Quoted 3 lines
The context you specified is a fscontext (
fs_t), not one normally used for inodes. But I'm not sure which one you meant to use or whether you ultimately ought to support them all.Possibly a simpler method would be to just pass through any mount options unknown to zfs to the kernel to allow interpretation and use by the vfs and/or security modules. That would also allow use with other security modules.
ya, this is probably a better option. I do think that rootcontext matches closest though, but am confused as to how it is different then fscontext. I will suggest a more generic option though, thanks :D
Signature · 1 line
-- Matthew Thode
Quoted 6 lines · Matthew Thode
Quoted 4 lines · Stephen Smalley
Quoted 3 lines · Stephen Smalley
Quoted 2 lines · Matthew Thode
zfs is very close to usable as a root file-system with selinux, but is just missing one thing, it doesn't know what to set the root context
to
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
on mount.
I am going to petition for this to be added as a property, but should
it
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 8 lines
be called rootcontext (want to make sure it's valid).
system_u:object_r:fs_t is what I used just to get my system working (including stuff like /usr, but meh).
here is the upstream bug if curious
https://github.com/zfsonlinux/zfs/issues/1504The mount options interpreted by SELinux are:
1. context= (treat all inodes in the filesystem as if they had the specified security context regardless of any on-disk extended attribute value),
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
2. fscontext= (treat the filesystem/superblock as if it had the specified security context, used in certain permission checks affecting filesystem operations like mount and umount),
3. rootcontext= (treat the root inode in the filesystem as if it had
the
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
specified security context but the normal behavior for the rest, useful for assigning an initial context to a root directory of e.g. a tmpfs mount), and
4. defcontext= (treat any file that lacks an extended attribute as if
it
Quoted 12 lines
Quoted 12 lines
Quoted 5 lines
had the specified security context).
The context you specified is a fscontext (
fs_t), not one normally used for inodes. But I'm not sure which one you meant to use or whether you ultimately ought to support them all.Possibly a simpler method would be to just pass through any mount options unknown to zfs to the kernel to allow interpretation and use by the vfs and/or security modules. That would also allow use with other security modules.
Quoted 3 lines
ya, this is probably a better option. I do think that rootcontext matches closest though, but am confused as to how it is different then fscontext. I will suggest a more generic option though, thanks :D
The fscontext is only for the filesystem class, rootcontext is for the mountpoint itself (thus directory and file (and other) classes).
Wkr,
Sven