From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EB4C23856DCE; Mon, 12 Sep 2022 22:28:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB4C23856DCE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663021690; bh=Tlfem6/qSv21+uBwNSBzYWazwgl6sKeBW2WPhSoP2No=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hHKNqbJyDIx0TtGQvjSZ4ZLzwXSZ4lUKBu+MUigddJcjx2/Oun8MODjHcaUYhl3iZ mjDIQTocBluI9Z0ydv+j8EV3CGeK6cqpTStDYbLZ5PcBhtZODSf7Wf8nvyLspeGIer 1VThKKOfSyLbNnd7qhlHDYPRZ777fVfARxsCP46o= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug nss/26233] matchpathcon and security_context_t are deprecated by libselinux API Date: Mon, 12 Sep 2022 22:28:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nss X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: arjun.is at lostca dot se X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D26233 --- Comment #4 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Carlos O'Donell : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3Df278835f594740f5913= 001430641cf1da4878670 commit f278835f594740f5913001430641cf1da4878670 Author: Aurelien Jarno Date: Sun Sep 11 11:30:17 2022 -0400 makedb: fix build with libselinux >=3D 3.1 (Bug 26233) glibc doesn't build with libselinux 3.1 that has been released recently due to new deprecations introduced in that version and the fact that glibc is built with -Werror by default: | makedb.c: In function =C3=A2set_file_creation_context=C3=A2: | makedb.c:849:3: error: =C3=A2security_context_t=C3=A2 is deprecated [-Werror=3Ddeprecated-declarations] | 849 | security_context_t ctx; | | ^~~~~~~~~~~~~~~~~~ | makedb.c:863:3: error: =C3=A2matchpathcon=C3=A2 is deprecated: Use selabel_lookup instead [-Werror=3Ddeprecated-declarations] | 863 | if (matchpathcon (outname, S_IFREG | mode, &ctx) =3D=3D 0 &= & ctx !=3D NULL) | | ^~ | In file included from makedb.c:50: | /usr/include/selinux/selinux.h:500:12: note: declared here | 500 | extern int matchpathcon(const char *path, | | ^~~~~~~~~~~~ | cc1: all warnings being treated as errors This patch fixes the makedb half of bug 26233 by moving to the new SELinux APIs and removes the existing compiler pragmas as no longer required. Upstream API usage feedback gathered by Arjun is integrated into this version of the fix. The built makedb was tested and operates as expected on x86_64 with SELinu in enforcing mode. No regressions on x86_64 with libselinux 3.3. Co-authored-by: Arjun Shankar Co-authored-by: Carlos O'Donell Reviewed-by: Siddhesh Poyarekar --=20 You are receiving this mail because: You are on the CC list for the bug.=