[OpenAFS-port-darwin] El Capitan

Teddy Thomas tthoma24@mit.edu
Tue, 18 Aug 2015 10:04:22 -0400


--Apple-Mail=_BE14F551-F425-48B4-A5ED-121A4324B07E
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_66489C6B-CFEC-4673-937F-68780BAEF130"


--Apple-Mail=_66489C6B-CFEC-4673-937F-68780BAEF130
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

The issue is that Apple has introduced a new security feature called =
System Integrity Protection (aka =E2=80=9CRootless=E2=80=9D) in 10.11. =
It is supposed to prevent unauthorized modifications of system files, =
which is why /usr is no longer writable, even as root. (I believe =
/usr/local is still okay, but I=E2=80=99m a bit fuzzy on that). If =
anyone is curious, they might want to read more here: =
https://developer.apple.com/library/prerelease/mac/releasenotes/MacOSX/Wha=
tsNewInOSX/Articles/MacOSX10_11.html#//apple_ref/doc/uid/TP40016227-DontLi=
nkElementID_17
and here: https://en.wikipedia.org/wiki/System_Integrity_Protection

While we=E2=80=99re waiting for the YFS installer, I managed to get AFS =
working with the YFS installer by disabling System Integrity Protection =
(aka =E2=80=9CRootless) by booting into Recovery and choosing the =
Security Configuration utility. You might need a firmware update in =
order to do so; before I did the Firmware Update, I got a weird IOKit =
error when trying to change the setting.

-Teddy


> On Aug 18, 2015, at 9:56 AM, Daria Brashear <shadow@gmail.com> wrote:
>=20
> The OpenAFS installers since time immemorial install into /usr; in =
10.11, /usr is not writable.
>=20
> The installers YFS produces have been modified to be ready for 10.11 =
but as it is not released finally yet, we
> are not yet distributing one for it.
>=20
>=20
>=20
> On Tue, Aug 18, 2015 at 8:28 AM, Christer Grafstr=C3=B6m =
<christer.grafstrom@ltu.se <mailto:christer.grafstrom@ltu.se>> wrote:
> Hello=20
>=20
> I have upgraded to El Capitan on my test-mac and openafs stopped =
working. I have tried to install it but no luck.
> The kext file is loaded so thats fine, but when i try to install the =
pkg I hade on my  Mac OS X 10.10 the installation failed.
>=20
> This I have from system.log : sandboxd[123] ([1732]): shove(1732) =
System Policy: deny file-write-create /usr/bin/aklog=20
> This I can understand and I can recompile and move aklog to another =
file path.
>=20
> Has someone else tried this and managed to install openafs on El =
Capitan?
>=20
> Regards
> Christer Grafstrom
> IT-Service
> Lulea University of Technology
>=20
>=20
>=20
>=20
>=20
> --=20
> Daria Phoebe Brashear
> Your File System, Inc.


--Apple-Mail=_66489C6B-CFEC-4673-937F-68780BAEF130
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">The issue is that Apple has introduced a new security feature =
called System Integrity Protection (aka =E2=80=9CRootless=E2=80=9D) in =
10.11. It is supposed to prevent unauthorized modifications of system =
files, which is why /usr is no longer writable, even as root. (I believe =
/usr/local is still okay, but I=E2=80=99m a bit fuzzy on that). If =
anyone is curious, they might want to read more here:&nbsp;<a =
href=3D"https://developer.apple.com/library/prerelease/mac/releasenotes/Ma=
cOSX/WhatsNewInOSX/Articles/MacOSX10_11.html#//apple_ref/doc/uid/TP4001622=
7-DontLinkElementID_17" =
class=3D"">https://developer.apple.com/library/prerelease/mac/releasenotes=
/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html#//apple_ref/doc/uid/TP4001=
6227-DontLinkElementID_17</a><div class=3D"">and here:&nbsp;<a =
href=3D"https://en.wikipedia.org/wiki/System_Integrity_Protection" =
class=3D"">https://en.wikipedia.org/wiki/System_Integrity_Protection</a><b=
r class=3D""><div class=3D""><br class=3D""></div><div class=3D"">While =
we=E2=80=99re waiting for the YFS installer, I managed to get AFS =
working with the YFS installer by disabling System Integrity Protection =
(aka =E2=80=9CRootless) by booting into Recovery and choosing the =
Security Configuration utility. You might need a firmware update in =
order to do so; before I did the Firmware Update, I got a weird IOKit =
error when trying to change the setting.</div><div class=3D""><br =
class=3D""></div><div class=3D"">-Teddy</div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Aug 18, 2015, at 9:56 AM, =
Daria Brashear &lt;<a href=3D"mailto:shadow@gmail.com" =
class=3D"">shadow@gmail.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><div class=3D""><div class=3D"">The OpenAFS installers since =
time immemorial install into /usr; in 10.11, /usr is not writable.<br =
class=3D""><br class=3D""></div>The installers YFS produces have been =
modified to be ready for 10.11 but as it is not released finally yet, =
we<br class=3D""></div>are not yet distributing one for it.<br =
class=3D""><br class=3D""><br class=3D""><div class=3D"gmail_extra"><br =
class=3D""><div class=3D"gmail_quote">On Tue, Aug 18, 2015 at 8:28 AM, =
Christer Grafstr=C3=B6m <span dir=3D"ltr" class=3D"">&lt;<a =
href=3D"mailto:christer.grafstrom@ltu.se" target=3D"_blank" =
class=3D"">christer.grafstrom@ltu.se</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style=3D"word-wrap:break-word" class=3D"">
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
Hello&nbsp;</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<br class=3D"">
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
I have upgraded to El Capitan on my test-mac and openafs stopped =
working. I have tried to install it but no luck.</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
The kext file is loaded so thats fine, but when i try to install the pkg =
I hade on my &nbsp;Mac OS X 10.10 the installation failed.</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<br class=3D"">
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
This I have from system.log :&nbsp;<span =
style=3D"font-family:Menlo;font-size:11px" class=3D"">sandboxd[123] =
([1732]): shove(1732) System Policy: deny file-write-create =
/usr/bin/aklog</span>&nbsp;</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
This I can understand and I can recompile and move aklog to another file =
path.</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<br class=3D"">
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
Has someone else tried this and managed to install openafs on El =
Capitan?</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<br class=3D"">
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
Regards</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
Christer Grafstrom</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
IT-Service</div>
<div class=3D""><span style=3D"line-height:16px;text-align:center" =
class=3D"">Lulea University of Technology</span></div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<br class=3D"">
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<br class=3D"">
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;" =
class=3D"">
<div class=3D""></div>
</div>
</div>

</blockquote></div><br class=3D""><br clear=3D"all" class=3D""><br =
class=3D"">-- <br class=3D""><div class=3D"gmail_signature"><div =
dir=3D"ltr" class=3D"">Daria Phoebe Brashear<br class=3D""></div><div =
class=3D"">Your File System, Inc.<br class=3D""></div></div>
</div></div>
</div></blockquote></div><br class=3D""></div></div></body></html>=

--Apple-Mail=_66489C6B-CFEC-4673-937F-68780BAEF130--

--Apple-Mail=_BE14F551-F425-48B4-A5ED-121A4324B07E
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCG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