Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402667 - Modify SELinux Policy to support ZFS
Summary: Modify SELinux Policy to support ZFS
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: https://github.com/zfsonlinux/zfs/iss...
Whiteboard: sec-policy r7
Keywords:
Depends on: 419439
Blocks:
  Show dependency tree
 
Reported: 2012-02-08 12:07 UTC by Richard Yao (RETIRED)
Modified: 2012-12-13 10:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zfs filesystem support (zfs-filesystem-support.patch,642 bytes, patch)
2012-08-30 00:35 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-02-08 12:07:49 UTC
Being responsible for the ZFS kernel modules, I thought that I would forward a request on behalf of upstream:

"we need convince the major distributions which enable SELinux by default to add ZFS as a known filesystem type which supports xattrs."

https://github.com/zfsonlinux/zfs/issues/220

Currently, the upstream code needs to be patched to build on Gentoo Hardened, but I wanted to open dialogue with the SELinux herd about ZFS support in advance of that.

https://github.com/zfsonlinux/zfs/issues/484
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2012-02-08 20:38:46 UTC
I don't mind giving ZFS a go in a vm to see if it works out fine. If it does (with the patches you mention in the post) we'll have to make sure the patches are either added by gentoo, or by upstream. I can then update docs to refer to ZFS as a supported file system as well.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2012-03-02 19:11:55 UTC
Haven't forgotten this one, just want to finish the 2.20120215 release first.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-11 17:37:42 UTC
Okay, any good pointers on getting ZFS to work on Gentoo Linux (without SELinux)?
Comment 4 Richard Yao (RETIRED) gentoo-dev 2012-04-19 17:42:14 UTC
All of my current usable work on ZFS is now available from an overlay:

https://github.com/gentoofan/zfs-overlay

It will live there until certain features are merged upstream. There are notes for installing Gentoo in the zfs-install document.
Comment 5 Richard Yao (RETIRED) gentoo-dev 2012-05-27 14:28:33 UTC
It seems that the policy in Fedora has been changed to support ZFS:

https://github.com/zfsonlinux/zfs/issues/220#issuecomment-5953792
Comment 6 Richard Yao (RETIRED) gentoo-dev 2012-08-30 00:30:53 UTC
Here is the line from Fedora's policy that adds SELinux support:

fs_use_xattr zfs gen_context(system_u:object_r:fs_t,s0);

They apply it to policy/modules/kernel/filesystem.te.
Comment 7 Jory A. Pratt gentoo-dev 2012-08-30 00:35:23 UTC
Created attachment 322529 [details, diff]
zfs filesystem support

Here would be initial support for zfs.
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-10 17:41:07 UTC
Long overdue, but committed. Strange that it still hasn't found the upstream repo, but as it's a small one-liner, I've added it in ours already anyway.
Comment 9 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-10 17:41:31 UTC
Sorry Matt, taking this one on me ;)
Comment 10 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-14 21:12:08 UTC
r7 is now in hardened-dev
Comment 11 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-18 15:29:13 UTC
In main tree, ~arch'ed
Comment 12 Sven Vermeulen (RETIRED) gentoo-dev 2012-12-13 10:15:47 UTC
r8 is now stable