diff --git a/security/polkit/distinfo b/security/polkit/distinfo index eb0030bf6ea3..2ebb96d957b8 100644 --- a/security/polkit/distinfo +++ b/security/polkit/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2018/08/16 12:30:43 wiz Exp $ +$NetBSD: distinfo,v 1.9 2019/03/14 10:15:19 jperkin Exp $ SHA1 (polkit-0.115.tar.gz) = 208b7e44fcf0f515d067d37307af9ea1419eb305 RMD160 (polkit-0.115.tar.gz) = fd98c3a4faf76c6adc021dff63f9a6cfd1804959 @@ -6,7 +6,7 @@ SHA512 (polkit-0.115.tar.gz) = 1153011fa93145b2c184e6b3446d3ca21b38918641aeccd8f Size (polkit-0.115.tar.gz) = 1550932 bytes SHA1 (patch-src_polkit_polkitunixprocess.c) = 88818b7b64502f64eade34ad379c07f2b0fd1aea SHA1 (patch-src_polkitbackend_polkitbackendinteractiveauthority.c) = dd91b4e74e6c39f24e0f5a9b3150fdac12899cb5 -SHA1 (patch-src_polkitbackend_polkitbackendjsauthority.cpp) = 43e8ec118601e978435d66ba805c35bc3db24b17 +SHA1 (patch-src_polkitbackend_polkitbackendjsauthority.cpp) = 432a3d7d082ba6e596ba164d91408fc521b84422 SHA1 (patch-src_polkitbackend_polkitd.c) = b8e11b40e2b171d4f030eb4c4cbc6fdc7a96b2c2 SHA1 (patch-src_programs_pkexec.c) = bfc0414c7a943c8e8b8412566a2519198eab8abd SHA1 (patch-src_programs_pkttyagent.c) = 4dbffd02c7e66910d4104a75d6f5f437bd51acc9 diff --git a/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp b/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp index efed5c970122..8eabd20ce92a 100644 --- a/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp +++ b/security/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority.cpp @@ -1,9 +1,9 @@ -$NetBSD: patch-src_polkitbackend_polkitbackendjsauthority.cpp,v 1.1 2018/05/14 09:30:35 jperkin Exp $ +$NetBSD: patch-src_polkitbackend_polkitbackendjsauthority.cpp,v 1.2 2019/03/14 10:15:19 jperkin Exp $ Provide getgrouplist for SunOS. This is available in newer Solaris, so if that becomes a problem we'll need to add a configure test. ---- src/polkitbackend/polkitbackendjsauthority.cpp.orig 2018-04-03 18:16:49.000000000 +0000 +--- src/polkitbackend/polkitbackendjsauthority.cpp.orig 2018-04-03 20:57:57.000000000 +0000 +++ src/polkitbackend/polkitbackendjsauthority.cpp @@ -55,6 +55,46 @@ #error "This code is not safe in SpiderMonkey exact stack rooting configurations" @@ -52,3 +52,15 @@ so if that becomes a problem we'll need to add a configure test. /** * SECTION:polkitbackendjsauthority * @title: PolkitBackendJsAuthority +@@ -813,7 +853,11 @@ subject_to_jsval (PolkitBackendJsAuthori + + if (getgrouplist (passwd->pw_name, + passwd->pw_gid, ++#ifdef __APPLE__ ++ (int *)gids, ++#else + gids, ++#endif + &num_gids) < 0) + { + g_warning ("Error looking up groups for uid %d: %m", (gint) uid);