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: <20240831095840.4173362-1-lihongbo22@huawei.com>
Date: Sat, 31 Aug 2024 17:58:36 +0800
From: Hongbo Li <lihongbo22@...wei.com>
To: <kees@...nel.org>, <andy@...nel.org>, <willemdebruijn.kernel@...il.com>,
	<jasowang@...hat.com>, <davem@...emloft.net>, <edumazet@...gle.com>,
	<kuba@...nel.org>, <pabeni@...hat.com>, <akpm@...ux-foundation.org>
CC: <linux-hardening@...r.kernel.org>, <netdev@...r.kernel.org>,
	<linux-mm@...ck.org>, <lihongbo22@...wei.com>
Subject: [PATCH -next 0/4] Introduce several opposite string choice helpers

Similar to the exists helper: str_enable_disable/
str_enabled_disabled/str_on_off/str_yes_no helpers, we can
add the opposite helpers. That's str_disable_enable,
str_disabled_enabled, str_off_on and str_no_yes.

There are more than 10 cases currently (expect
str_disable_enable now has 3 use cases) exist in the code
can be replaced with these helper.

Patch 1: Introduce the string choice helpers
Patch 2~4: Give the relative use cases to use these helpers.

Hongbo Li (4):
  lib/string_choices: Introduce several opposite string choice helpers
  tun: Make use of str_disabled_enabled helper
  mm: page_alloc: Make use of str_off_on helper
  net: sock: Make use of str_no_yes() helper

 drivers/net/tun.c              | 2 +-
 include/linux/string_choices.h | 4 ++++
 mm/page_alloc.c                | 3 +--
 net/core/sock.c                | 2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ