Re: notarization works! (was Re: not that)

Ronald Oussoren via Pyobjc-dev <[email protected]> Mon, 29 Oct 2018 09:13:59 +0100
Newsgroups gmane.comp.python.pyobjc.devel,gmane.comp.python.apple
Message-ID <[email protected]>
--===============1403559186778313220==
Content-type: multipart/alternative;
 boundary="Apple-Mail=_3D82923B-C1B3-4C6A-AB96-1FBD5CC0BF6E"


--Apple-Mail=_3D82923B-C1B3-4C6A-AB96-1FBD5CC0BF6E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 29 Oct 2018, at 07:58, Ronald Oussoren via Pyobjc-dev =
<[email protected]> wrote:
>=20
> MAP_JIT is a mmap flag that=E2=80=99s apparently introduced in 10.14. =
The slides at https://developer.apple.com/videos/play/wwdc2018/702/ =
<https://developer.apple.com/videos/play/wwdc2018/702/> mention this =
flag and the hardened runtime. =20
>=20
> I guess we should add this flag to the code in =
Modules/_ctypes/malloc_closure.c CPython) and in the similar code in =
PyObjC.  The annoying bit is that the flag is new in 10.14, and CPython =
installers are created on 10.9 which means those won=E2=80=99t include =
the new flag for a long time.=20
>=20
> I=E2=80=99ll have to check if using MAP_JIT is ok when deploying on =
older macOS versions, or if the code should do a runtime version check.=20=


I filed an issue with PyObjC to ensure I don=E2=80=99t forget to look =
into this: =
https://bitbucket.org/ronaldoussoren/pyobjc/issues/253/use-map_fixed-on-ma=
cos-1014 =
<https://bitbucket.org/ronaldoussoren/pyobjc/issues/253/use-map_fixed-on-m=
acos-1014>.

I=E2=80=99ll look into ctypes when I have a good solution for PyObjC.

Ronald


--Apple-Mail=_3D82923B-C1B3-4C6A-AB96-1FBD5CC0BF6E
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; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 29 Oct 2018, at 07:58, Ronald Oussoren via Pyobjc-dev =
&lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><div =
class=3D""><div style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><br class=3D""></div><div style=3D"caret-color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D"">MAP_JIT is a mmap flag that=E2=80=99s =
apparently introduced in 10.14. The slides at&nbsp;<a =
href=3D"https://developer.apple.com/videos/play/wwdc2018/702/" =
class=3D"">https://developer.apple.com/videos/play/wwdc2018/702/</a>&nbsp;=
mention this flag and the hardened runtime. &nbsp;</div><div =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br =
class=3D""></div><div style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D"">I guess we should add this flag to the code =
in&nbsp;<span class=3D"" style=3D"font-family: Menlo; font-size: =
11px;">Modules/_ctypes/malloc_closure.c</span><span class=3D"" =
style=3D"font-family: Menlo; font-size: 11px;">&nbsp;C</span><font =
face=3D"Menlo" class=3D""><span class=3D"" style=3D"font-size: =
11px;">Python) and in the&nbsp;similar code in PyObjC. &nbsp;The =
annoying bit is that the flag is new in 10.14, and CPython installers =
are created on 10.9 which means those won=E2=80=99t include the new flag =
for a long time.&nbsp;</span></font></div><div style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><font face=3D"Menlo" class=3D""><span =
class=3D"" style=3D"font-size: 11px;"><br =
class=3D""></span></font></div><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><font face=3D"Menlo" class=3D""><span =
class=3D"" style=3D"font-size: 11px;">I=E2=80=99ll have to check if =
using MAP_JIT is ok when deploying on older macOS versions, or if the =
code should do a runtime version =
check.&nbsp;</span></font></div></div></blockquote><div><br =
class=3D""></div>I filed an issue with PyObjC to ensure I don=E2=80=99t =
forget to look into this:&nbsp;<a =
href=3D"https://bitbucket.org/ronaldoussoren/pyobjc/issues/253/use-map_fix=
ed-on-macos-1014" =
class=3D"">https://bitbucket.org/ronaldoussoren/pyobjc/issues/253/use-map_=
fixed-on-macos-1014</a>.</div><div><br class=3D""></div><div>I=E2=80=99ll =
look into ctypes when I have a good solution for PyObjC.</div><div><br =
class=3D""></div><div>Ronald</div><div><br class=3D""></div></body></html>=

--Apple-Mail=_3D82923B-C1B3-4C6A-AB96-1FBD5CC0BF6E--


--===============1403559186778313220==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1403559186778313220==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

--===============1403559186778313220==--