lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240809122007.1220219-1-masahiroy@kernel.org>
Date: Fri,  9 Aug 2024 21:19:00 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Paul Moore <paul@...l-moore.com>,
	linux-security-module@...r.kernel.org
Cc: linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Daniel Gomez <da.gomez@...sung.com>,
	Masahiro Yamada <masahiroy@...nel.org>,
	Ondrej Mosnacek <omosnace@...hat.com>,
	Stephen Smalley <stephen.smalley.work@...il.com>,
	selinux@...r.kernel.org
Subject: [PATCH 0/2] selinux: Do not include <linux/*.h> from host programs (+ extra clean-up)


This is a small patch set to refactor selinux Makefile code.
(1/2 is the main motivation here)

1/2 is intended to replace the following shenonigans:
  - [PATCH 02/12] kbuild: add header_install dependency to scripts
  - [PATCH 06/12] selinux/genheaders: include bitsperlong and posix_types headers
  - [PATCH 07/12] selinux/mdp: include bitsperlong and posix_types headers
    https://lore.kernel.org/linux-kbuild/20240807-macos-build-support-v1-7-4cd1ded85694@samsung.com/T/#m1231a27dc83f86c283c4abf480c3d3312955fbb7

2/2 is just an extra work while I am here.



Masahiro Yamada (2):
  selinux: do not include <linux/*.h> headers from host programs
  selinux: move genheaders to security/selinux/

 scripts/remove-stale-files                    |  3 +++
 scripts/selinux/Makefile                      |  2 +-
 scripts/selinux/genheaders/.gitignore         |  2 --
 scripts/selinux/genheaders/Makefile           |  5 -----
 scripts/selinux/mdp/Makefile                  |  2 +-
 scripts/selinux/mdp/mdp.c                     |  4 ----
 security/selinux/.gitignore                   |  1 +
 security/selinux/Makefile                     |  7 +++++--
 .../selinux}/genheaders.c                     |  3 ---
 security/selinux/include/classmap.h           | 19 ++++++++++++-------
 .../selinux/include/initial_sid_to_string.h   |  2 --
 11 files changed, 23 insertions(+), 27 deletions(-)
 delete mode 100644 scripts/selinux/genheaders/.gitignore
 delete mode 100644 scripts/selinux/genheaders/Makefile
 rename {scripts/selinux/genheaders => security/selinux}/genheaders.c (97%)

-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ