From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 779125A004E; Thu, 14 Nov 2024 23:48:54 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH] selinux: Use auth_read_passwd() interface for all our getpwnam() needs Date: Thu, 14 Nov 2024 23:48:54 +0100 Message-ID: <20241114224854.3397287-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID-Hash: JRU2DFXV224ARW3LWXZATW6CBFASKAZP X-Message-ID-Hash: JRU2DFXV224ARW3LWXZATW6CBFASKAZP X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Minxi Hou , =?UTF-8?q?Milo=C5=A1=20Malik?= , "'Richard W . M . Jones'" X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: SWYgcGFzc3Qgb3IgcGFzdGEgYXJlIHN0YXJ0ZWQgYXMgcm9vdCwgd2UgbmVlZCB0byByZWFkIHRo ZSBwYXNzd2QgZmlsZQ0KKGJlIGl0IC9ldGMvcGFzc3dkIG9yIHdoYXRldmVyIHNzc2QgcHJvdmlk ZXMpIHRvIGZpbmQgb3V0IFVJRCBhbmQgR0lEDQpvZiAnbm9ib2R5JyBzbyB0aGF0IHdlIGNhbiBz d2l0Y2ggdG8gaXQuDQoNCkluc3RlYWQgb2YgYSBidW5jaCBvZiBhbGxvdyBydWxlcyBmb3IgcGFz c3dkX2ZpbGVfdCBhbmQgc3NzZCBtYWNyb3MsDQp1c2UgdGhlIG1vcmUgY29udmVuaWVudCBhdXRo X3JlYWRfcGFzc3dkKCkgaW50ZXJmYWN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