selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Haines <richard_c_haines@btinternet.com>
To: selinux@vger.kernel.org, sds@tycho.nsa.gov
Cc: Richard Haines <richard_c_haines@btinternet.com>
Subject: [PATCH V3 0/2] selinux: Remove legacy local boolean and user code
Date: Mon, 24 Jun 2019 19:02:27 +0100	[thread overview]
Message-ID: <20190624180229.9573-1-richard_c_haines@btinternet.com> (raw)

I've removed the legacy code as discussed and seems to work okay when
loading policy on Fedora 30 & Rawhide (they both boot as well).
Note: I cannot test any other releases.

Tested downgrading policy to 24 okay using load_policy(8).

V2 Changes:
Updated as requested in [1].
Add manpages.
V3 Change:
Fix deprecated_funcs.c WARN() messages in Patch 1.

[1] https://lore.kernel.org/selinux/18e772cde0ed8f4d83752a9957ad2a3a11ecad8c.camel@btinternet.com/

Richard Haines (2):
  selinux: Remove legacy local boolean and user code
  selinux: Update manpages after removing legacy boolean and user code

 libselinux/include/selinux/selinux.h          |  18 +-
 libselinux/man/man3/security_load_booleans.3  |  12 +-
 .../man/man3/selinux_binary_policy_path.3     |   7 +-
 libselinux/man/man3/selinux_booleans_path.3   |   1 -
 libselinux/man/man5/booleans.5                |  80 ----
 libselinux/man/man5/local.users.5             |  68 ----
 libselinux/man/ru/man5/booleans.5             |  83 -----
 libselinux/man/ru/man5/local.users.5          |  72 ----
 libselinux/src/booleans.c                     | 225 +-----------
 libselinux/src/file_path_suffixes.h           |   2 +
 libselinux/src/load_policy.c                  | 100 +----
 libselinux/src/selinux_config.c               |   9 +-
 libselinux/src/selinux_internal.h             |   1 -
 libsepol/include/sepol/booleans.h             |  15 +-
 libsepol/include/sepol/policydb/services.h    |   6 -
 libsepol/include/sepol/users.h                |  13 +-
 libsepol/man/man3/sepol_genbools.3            |  30 --
 libsepol/man/man3/sepol_genusers.3            |  54 ---
 libsepol/src/deprecated_funcs.c               |  50 +++
 libsepol/src/genbools.c                       | 279 --------------
 libsepol/src/genusers.c                       | 343 ------------------
 policycoreutils/load_policy/load_policy.c     |   2 +-
 policycoreutils/man/man5/selinux_config.5     |  15 +-
 policycoreutils/man/ru/man5/selinux_config.5  |  11 +-
 24 files changed, 86 insertions(+), 1410 deletions(-)
 delete mode 100644 libselinux/man/man3/selinux_booleans_path.3
 delete mode 100644 libselinux/man/man5/booleans.5
 delete mode 100644 libselinux/man/man5/local.users.5
 delete mode 100644 libselinux/man/ru/man5/booleans.5
 delete mode 100644 libselinux/man/ru/man5/local.users.5
 delete mode 100644 libsepol/man/man3/sepol_genbools.3
 delete mode 100644 libsepol/man/man3/sepol_genusers.3
 create mode 100644 libsepol/src/deprecated_funcs.c
 delete mode 100644 libsepol/src/genbools.c
 delete mode 100644 libsepol/src/genusers.c

-- 
2.21.0


             reply	other threads:[~2019-06-24 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-24 18:02 Richard Haines [this message]
2019-06-24 18:02 ` [PATCH V3 1/2] selinux: Remove legacy local boolean and user code Richard Haines
2019-07-29 22:21 ` [PATCH V3 0/2] " Nicolas Iooss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190624180229.9573-1-richard_c_haines@btinternet.com \
    --to=richard_c_haines@btinternet.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).