From patchwork Wed Mar 20 10:22:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1914036 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=Wk1J8btx; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=77J1Ina3; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=Wk1J8btx; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=77J1Ina3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V04Rm10HJz1yXD for ; Wed, 20 Mar 2024 21:23:16 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D73853CE669 for ; Wed, 20 Mar 2024 11:23:13 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C72BF3CE64F for ; Wed, 20 Mar 2024 11:22:55 +0100 (CET) Authentication-Results: in-4.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.130; helo=smtp-out1.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id C70131000CF9 for ; Wed, 20 Mar 2024 11:22:54 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 72BBB341BF; Wed, 20 Mar 2024 10:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1710930173; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yA6SacfW4K9zM5vEoIelwGM+CnffPGhkWmQGVr/5fNY=; b=Wk1J8btxpcyyPja1sXbgwFK0RV5E+xjXiwVzIWwca9SRvjNKQE8vJMKdkngo1nn36Pq09o QDCX+byvAPL9zcSd3Zc++3uYYr4xDHf/Yyov26+IXzRFy4YrWciCCiSO2mx3mkNv60h7I4 m1c0yOU7J4PN13T64xV+6I5KGcB56rM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1710930173; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yA6SacfW4K9zM5vEoIelwGM+CnffPGhkWmQGVr/5fNY=; b=77J1Ina3nEmJfcR/CIg11MmUt4NfrewVxRWhkGVz8FIErBOOwiU0ub+UVgMRMOhuu8ZHg+ 8ICnfo/pylq+sIDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1710930173; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yA6SacfW4K9zM5vEoIelwGM+CnffPGhkWmQGVr/5fNY=; b=Wk1J8btxpcyyPja1sXbgwFK0RV5E+xjXiwVzIWwca9SRvjNKQE8vJMKdkngo1nn36Pq09o QDCX+byvAPL9zcSd3Zc++3uYYr4xDHf/Yyov26+IXzRFy4YrWciCCiSO2mx3mkNv60h7I4 m1c0yOU7J4PN13T64xV+6I5KGcB56rM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1710930173; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yA6SacfW4K9zM5vEoIelwGM+CnffPGhkWmQGVr/5fNY=; b=77J1Ina3nEmJfcR/CIg11MmUt4NfrewVxRWhkGVz8FIErBOOwiU0ub+UVgMRMOhuu8ZHg+ 8ICnfo/pylq+sIDA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 43941136D6; Wed, 20 Mar 2024 10:22:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id 83uVD/24+mWyaAAAD6G6ig (envelope-from ); Wed, 20 Mar 2024 10:22:53 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 20 Mar 2024 11:22:01 +0100 Message-ID: <20240320102204.475230-1-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Score: 3.50 X-Spamd-Bar: +++ Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Wk1J8btx; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=77J1Ina3 X-Spamd-Result: default: False [3.50 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.19)[-0.970]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[15.14%]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: 72BBB341BF X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH v2 0/3] fanotify14 on SELinux fix + lib source merge X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mete Durlu Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Hi, changes v1->v2: * New commit: lib: Merge security related sources * Add selinux to tst_security.c instead of it's own C file. * Do not include library header in fanotify14 (not needed) Mete Durlu (1): fanotify14: fix anonymous pipe testcases Petr Vorel (2): lib: Merge security related sources lib: Add tst_selinux_enforcing() include/tst_fips.h | 15 ---- include/tst_lockdown.h | 11 --- include/tst_security.h | 18 ++++ include/tst_test.h | 4 +- lib/tst_fips.c | 24 ----- lib/{tst_lockdown.c => tst_security.c} | 87 ++++++++++++------- .../kernel/syscalls/fanotify/fanotify14.c | 18 +++- 7 files changed, 92 insertions(+), 85 deletions(-) delete mode 100644 include/tst_fips.h delete mode 100644 include/tst_lockdown.h create mode 100644 include/tst_security.h delete mode 100644 lib/tst_fips.c rename lib/{tst_lockdown.c => tst_security.c} (77%)