misc: Replace the words 'blacklist/whitelist'
v2 cover misc: Replace the words 'blacklist/whitelist'
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "blacklist" and "whitelist" appropriately.
Since v1:
- dropped qemu-guest-agent patches
- addressed review comments
- added R-b tags
Missing review: PATCH #6 "qemu-options: Replace the word 'blacklist'"
Series expected to go via the qemu-trivial@ tree.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Philippe Mathieu-Daudé (8):
ui: Replace the word 'whitelist' tools/virtiofsd: Replace the word 'whitelist' scripts/tracetool: Replace the word 'whitelist' scripts/device-crash-test: Replace the word 'whitelist'
seccomp: Replace the word 'blacklist'
qemu-options: Replace the word 'blacklist' tests/fp/fp-test: Replace the word 'blacklist' hw/vfio/pci-quirks: Replace the word 'blacklist'
hw/vfio/pci.h | 2 +- hw/vfio/pci-quirks.c | 14 ++++++------- hw/vfio/pci.c | 4 ++-- softmmu/qemu-seccomp.c | 16 +++++++------- tests/fp/fp-test.c | 8 +++---- tools/virtiofsd/passthrough_ll.c | 6 +++--- tools/virtiofsd/passthrough_seccomp.c | 12 +++++------ ui/console.c | 2 +- ui/vnc-auth-sasl.c | 4 ++-- hw/vfio/trace-events | 2 +- qemu-options.hx | 6 +++--- scripts/device-crash-test | 30 +++++++++++++-------------- scripts/tracetool/__init__.py | 2 +- 13 files changed, 54 insertions(+), 54 deletions(-)
Signature · 1 line
2.26.2
PATCH v2 1/8 ui: Replace the word 'whitelist'
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
---
v2: Do not use acronyms (danpb)
--- ui/console.c | 2 +- ui/vnc-auth-sasl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
ui/console.c +1 -1
@@ -1708,7 +1708,7 @@ bool dpy_gfx_check_format(QemuConsole *con,return false; } }else { -/* default is to whitelist native 32 bpp only */ +/* default is to allow native 32 bpp only */ if (format !=qemu_default_pixman_format (32 , true)) {return false; }
ui/vnc-auth-sasl.c +2 -2
@@ -288,7 +288,7 @@ static int protocol_client_auth_sasl_step(VncState *vs, uint8_t *data, size_t le goto authreject; } -/* Check username whitelist ACL */ +/* Check the username access control list */ if (vnc_auth_sasl_check_access (vs) <0 ) { goto authreject; }
@@ -409,7 +409,7 @@ static int protocol_client_auth_sasl_start(VncState *vs, uint8_t *data, size_t l goto authreject; } -/* Check username whitelist ACL */ +/* Check the username access control list */ if (vnc_auth_sasl_check_access (vs) <0 ) { goto authreject; }
Signature · 1 line
2.26.2
Re: [PATCH v2 1/8] ui: Replace the word 'whitelist'
Quoted 8 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Gerd Hoffmann <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Signature · 1 line
Alex Bennée
Re: [PATCH v2 1/8] ui: Replace the word 'whitelist'
In reply to Philippe Mathieu-DaudéQuoted 43 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Gerd Hoffmann <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
v2: Do not use acronyms (danpb)--- ui/console.c | 2 +- ui/vnc-auth-sasl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)ui/console.c +1
-1@@ -1708,7 +1708,7 @@ bool dpy_gfx_check_format(QemuConsole *con,return false; } }else { -/* default is to whitelist native 32 bpp only */ +/* default is to allow native 32 bpp only */ if (format !=qemu_default_pixman_format (32 , true)) {return false; }ui/vnc-auth-sasl.c +1
-1@@ -288,7 +288,7 @@ static int protocol_client_auth_sasl_step(VncState *vs, uint8_t *data, size_t le goto authreject; } -/* Check username whitelist ACL */ +/* Check the username access control list */ if (vnc_auth_sasl_check_access (vs) <0 ) { goto authreject; }
ui/vnc-auth-sasl.c static int protocol_client_auth_sasl_start(VncState *vs, uint8_t *data, size_t l · line 415
Quoted 8 lines
ui/vnc-auth-sasl.c +1
-1@@ -409,7 +409,7 @@ static int protocol_client_auth_sasl_start(VncState *vs, uint8_t *data, size_t l goto authreject; } -/* Check username whitelist ACL */ +/* Check the username access control list */ if (vnc_auth_sasl_check_access (vs) <0 ) { goto authreject; }
PATCH v2 2/8 tools/virtiofsd: Replace the word 'whitelist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
--- tools/virtiofsd/passthrough_ll.c | 6 +++--- tools/virtiofsd/passthrough_seccomp.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-)
tools/virtiofsd/passthrough_ll.c +3 -3
@@ -3204,7 +3204,7 @@ static void setup_mounts(const char *source) }/* -* Only keep whitelisted capabilities that are needed for file system operation +* Only keep capabilities in allowlist that are needed for file system operation * The (possibly NULL) modcaps_in string passed in is free'd before exit. */ static void setup_capabilities (char *modcaps_in)
@@ -3214,8 +3214,8 @@ static void setup_capabilities(char *modcaps_in)capng_restore_state (&cap.saved);/* -* Whitelist file system-related capabilities that are needed for a file -* server to act like root. Drop everything else like networking and +* Add to allowlist file system-related capabilities that are needed for a +* file server to act like root. Drop everything else like networking and * sysadmin capabilities. * * Exclusions:
tools/virtiofsd/passthrough_seccomp.c +6 -6
@@ -21,7 +21,7 @@#endif #endif -static const int syscall_whitelist[] = { +static const int syscall_allowlist[] = {/* TODO ireg sem*() syscalls */ SCMP_SYS (brk),SCMP_SYS (capget),/* For CAP_FSETID */
@@ -117,12 +117,12 @@ static const int syscall_whitelist[] = { };/* Syscalls used when --syslog is enabled */ -static const int syscall_whitelist_syslog[] = { +static const int syscall_allowlist_syslog[] = {SCMP_SYS (send),SCMP_SYS (sendto), }; -static void add_whitelist (scmp_filter_ctx ctx,const int syscalls[],size_t len) +static void add_allowlist (scmp_filter_ctx ctx,const int syscalls[],size_t len) {size_t i;
@@ -153,10 +153,10 @@ void setup_seccomp(bool enable_syslog)exit (1 ); } -add_whitelist (ctx, syscall_whitelist,G_N_ELEMENTS (syscall_whitelist)); +add_allowlist (ctx, syscall_allowlist,G_N_ELEMENTS (syscall_allowlist));if (enable_syslog) { -add_whitelist (ctx, syscall_whitelist_syslog, -G_N_ELEMENTS (syscall_whitelist_syslog)); +add_allowlist (ctx, syscall_allowlist_syslog, +G_N_ELEMENTS (syscall_allowlist_syslog)); }/* libvhost-user calls this for post-copy migration, we don't need it */
Signature · 1 line
2.26.2
Re: [PATCH v2 2/8] tools/virtiofsd: Replace the word 'whitelist'
Quoted 9 lines · * Philippe Mathieu-Daudé ([email protected]) wrote:
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Daniel P. Berrangé <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
I've queued just this one via virtiofsd.
Dave
Quoted 75 lines
--- tools/virtiofsd/passthrough_ll.c | 6 +++--- tools/virtiofsd/passthrough_seccomp.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-)tools/virtiofsd/passthrough_ll.c +3
-3@@ -3204,7 +3204,7 @@ static void setup_mounts(const char *source) }/* -* Only keep whitelisted capabilities that are needed for file system operation +* Only keep capabilities in allowlist that are needed for file system operation * The (possibly NULL) modcaps_in string passed in is free'd before exit. */ static void setup_capabilities (char *modcaps_in)@@ -3214,8 +3214,8 @@ static void setup_capabilities(char *modcaps_in)capng_restore_state (&cap.saved);/* -* Whitelist file system-related capabilities that are needed for a file -* server to act like root. Drop everything else like networking and +* Add to allowlist file system-related capabilities that are needed for a +* file server to act like root. Drop everything else like networking and * sysadmin capabilities. * * Exclusions: tools/virtiofsd/passthrough_seccomp.c +6
-6@@ -21,7 +21,7 @@#endif #endif -static const int syscall_whitelist[] = { +static const int syscall_allowlist[] = {/* TODO ireg sem*() syscalls */ SCMP_SYS (brk),SCMP_SYS (capget),/* For CAP_FSETID */ @@ -117,12 +117,12 @@ static const int syscall_whitelist[] = { };/* Syscalls used when --syslog is enabled */ -static const int syscall_whitelist_syslog[] = { +static const int syscall_allowlist_syslog[] = {SCMP_SYS (send),SCMP_SYS (sendto), }; -static void add_whitelist (scmp_filter_ctx ctx,const int syscalls[],size_t len) +static void add_allowlist (scmp_filter_ctx ctx,const int syscalls[],size_t len) {size_t i;@@ -153,10 +153,10 @@ void setup_seccomp(bool enable_syslog)exit (1 ); } -add_whitelist (ctx, syscall_whitelist,G_N_ELEMENTS (syscall_whitelist)); +add_allowlist (ctx, syscall_allowlist,G_N_ELEMENTS (syscall_allowlist));if (enable_syslog) { -add_whitelist (ctx, syscall_whitelist_syslog, -G_N_ELEMENTS (syscall_whitelist_syslog)); +add_allowlist (ctx, syscall_allowlist_syslog, +G_N_ELEMENTS (syscall_allowlist_syslog)); }/* libvhost-user calls this for post-copy migration, we don't need it */ Signature · 1 line
2.26.2
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
PATCH v2 3/8 scripts/tracetool: Replace the word 'whitelist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
--- scripts/tracetool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/tracetool/__init__.py +1 -1
@@ -100,7 +100,7 @@ def validate_type(name): if bit == "const": continue if bit not in ALLOWED_TYPES: - raise ValueError("Argument type '%s' is not in whitelist. " + raise ValueError("Argument type '%s' is not allowed. " "Only standard C types and fixed size integer " "types should be used. struct, union, and " "other complex pointer types should be "
Signature · 1 line
2.26.2
Re: [PATCH v2 3/8] scripts/tracetool: Replace the word 'whitelist'
Quoted 9 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Daniel P. Berrangé <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Signature · 1 line
Alex Bennée
Re: [PATCH v2 3/8] scripts/tracetool: Replace the word 'whitelist'
In reply to Philippe Mathieu-DaudéQuoted 19 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Daniel P. Berrangé <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- scripts/tracetool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/tracetool/__init__.py +0
-0
scripts/tracetool/__init__.py def validate_type(name): · line 106
Quoted 8 lines
scripts/tracetool/__init__.py +1
-1@@ -100,7 +100,7 @@ def validate_type(name): if bit == "const": continue if bit not in ALLOWED_TYPES: - raise ValueError("Argument type '%s' is not in whitelist. " + raise ValueError("Argument type '%s' is not allowed. " "Only standard C types and fixed size integer " "types should be used. struct, union, and " "other complex pointer types should be "
PATCH v2 4/8 scripts/device-crash-test: Replace the word 'whitelist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
--- scripts/device-crash-test | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
scripts/device-crash-test +15 -15
@@ -41,18 +41,18 @@ logger = logging.getLogger('device-crash-test') dbg = logger.debug -# Purposes of the following whitelist: +# Purposes of the following allowlist: # * Avoiding verbose log messages when we find known non-fatal # (exitcode=1) errors # * Avoiding fatal errors when we find known crashes # * Skipping machines/devices that are known not to work out of # the box, when running in --quick mode # -# Keeping the whitelist updated is desirable, but not required, +# Keeping the allowlist updated is desirable, but not required, # because unexpected cases where QEMU exits with exitcode=1 will # just trigger a INFO message. -# Valid whitelist entry keys: +# Valid allowlist entry keys: # * accel: regexp, full match only # * machine: regexp, full match only # * device: regexp, full match only
@@ -62,7 +62,7 @@ dbg = logger.debug # * expected: if True, QEMU is expected to always fail every time # when testing the corresponding test case # * loglevel: log level of log output when there's a match. -ERROR_WHITELIST = [ +ERROR_ALLOWLIST = [ # Machines that won't work out of the box: # MACHINE | ERROR MESSAGE {'machine':'niagara', 'expected':True}, # Unable to load a firmware for -M niagara
@@ -187,9 +187,9 @@ ERROR_WHITELIST = [ def whitelistTestCaseMatch(wl, t): - """Check if a test case specification can match a whitelist entry + """Check if a test case specification can match a allowlist entry - This only checks if a whitelist entry is a candidate match + This only checks if a allowlist entry is a candidate match for a given test case, it won't check if the test case results/output match the entry. See whitelistResultMatch(). """
@@ -206,16 +206,16 @@ def whitelistTestCaseMatch(wl, t): def whitelistCandidates(t): """Generate the list of candidates that can match a test case""" - for i, wl in enumerate(ERROR_WHITELIST): + for i, wl in enumerate(ERROR_ALLOWLIST): if whitelistTestCaseMatch(wl, t): yield (i, wl) def findExpectedResult(t): - """Check if there's an expected=True whitelist entry for a test case + """Check if there's an expected=True allowlist entry for a test case Returns (i, wl) tuple, where i is the index in - ERROR_WHITELIST and wl is the whitelist entry itself. + ERROR_ALLOWLIST and wl is the allowlist entry itself. """ for i, wl in whitelistCandidates(t): if wl.get('expected'):
@@ -223,7 +223,7 @@ def findExpectedResult(t): def whitelistResultMatch(wl, r): - """Check if test case results/output match a whitelist entry + """Check if test case results/output match a allowlist entry It is valid to call this function only if whitelistTestCaseMatch() is True for the entry (e.g. on
@@ -237,10 +237,10 @@ def whitelistResultMatch(wl, r): def checkResultWhitelist(r): - """Look up whitelist entry for a given test case result + """Look up allowlist entry for a given test case result Returns (i, wl) tuple, where i is the index in - ERROR_WHITELIST and wl is the whitelist entry itself. + ERROR_ALLOWLIST and wl is the allowlist entry itself. """ for i, wl in whitelistCandidates(r['testcase']): if whitelistResultMatch(wl, r):
@@ -544,7 +544,7 @@ def main(): if f: i, wl = checkResultWhitelist(f) - dbg("testcase: %r, whitelist match: %r", t, wl) + dbg("testcase: %r, allowlist match: %r", t, wl) wl_stats.setdefault(i, []).append(f) level = wl.get('loglevel', logging.DEBUG) logFailure(f, level)
@@ -561,9 +561,9 @@ def main(): if args.debug: stats = sorted([(len(wl_stats.get(i, [])), wl) for i, wl in - enumerate(ERROR_WHITELIST)], key=lambda x: x[0]) + enumerate(ERROR_ALLOWLIST)], key=lambda x: x[0]) for count, wl in stats: - dbg("whitelist entry stats: %d: %r", count, wl) + dbg("allowlist entry stats: %d: %r", count, wl) if fatal_failures: for f in fatal_failures:
Signature · 1 line
2.26.2
Re: [PATCH v2 4/8] scripts/device-crash-test: Replace the word 'whitelist'
Quoted 48 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Daniel P. Berrangé <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- scripts/device-crash-test | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)scripts/device-crash-test +4
-4@@ -41,18 +41,18 @@ logger = logging.getLogger('device-crash-test') dbg = logger.debug -# Purposes of the following whitelist: +# Purposes of the following allowlist: # * Avoiding verbose log messages when we find known non-fatal # (exitcode=1) errors # * Avoiding fatal errors when we find known crashes # * Skipping machines/devices that are known not to work out of # the box, when running in --quick mode # -# Keeping the whitelist updated is desirable, but not required, +# Keeping the allowlist updated is desirable, but not required, # because unexpected cases where QEMU exits with exitcode=1 will # just trigger a INFO message. -# Valid whitelist entry keys: +# Valid allowlist entry keys: # * accel: regexp, full match only # * machine: regexp, full match only # * device: regexp, full match only@@ -62,7 +62,7 @@ dbg = logger.debug # * expected: if True, QEMU is expected to always fail every time # when testing the corresponding test case # * loglevel: log level of log output when there's a match. -ERROR_WHITELIST = [ +ERROR_ALLOWLIST = [ # Machines that won't work out of the box: # MACHINE | ERROR MESSAGE {'machine':'niagara', 'expected':True}, # Unable to load a firmware for -M niagara
scripts/device-crash-test ERROR_WHITELIST = [ · line 190
Quoted 5 lines
scripts/device-crash-test +1
-1@@ -187,9 +187,9 @@ ERROR_WHITELIST = [ def whitelistTestCaseMatch(wl, t): - """Check if a test case specification can match a whitelist entry + """Check if a test case specification can match a allowlist entry
Seems like the function names (and params?) could be updated as well.
Quoted 69 lines
scripts/device-crash-test +10
-10- This only checks if a whitelist entry is a candidate match + This only checks if a allowlist entry is a candidate match for a given test case, it won't check if the test case results/output match the entry. See whitelistResultMatch(). """@@ -206,16 +206,16 @@ def whitelistTestCaseMatch(wl, t): def whitelistCandidates(t): """Generate the list of candidates that can match a test case""" - for i, wl in enumerate(ERROR_WHITELIST): + for i, wl in enumerate(ERROR_ALLOWLIST): if whitelistTestCaseMatch(wl, t): yield (i, wl) def findExpectedResult(t): - """Check if there's an expected=True whitelist entry for a test case + """Check if there's an expected=True allowlist entry for a test case Returns (i, wl) tuple, where i is the index in - ERROR_WHITELIST and wl is the whitelist entry itself. + ERROR_ALLOWLIST and wl is the allowlist entry itself. """ for i, wl in whitelistCandidates(t): if wl.get('expected'):@@ -223,7 +223,7 @@ def findExpectedResult(t): def whitelistResultMatch(wl, r): - """Check if test case results/output match a whitelist entry + """Check if test case results/output match a allowlist entry It is valid to call this function only if whitelistTestCaseMatch() is True for the entry (e.g. on@@ -237,10 +237,10 @@ def whitelistResultMatch(wl, r): def checkResultWhitelist(r): - """Look up whitelist entry for a given test case result + """Look up allowlist entry for a given test case result Returns (i, wl) tuple, where i is the index in - ERROR_WHITELIST and wl is the whitelist entry itself. + ERROR_ALLOWLIST and wl is the allowlist entry itself. """ for i, wl in whitelistCandidates(r['testcase']): if whitelistResultMatch(wl, r):@@ -544,7 +544,7 @@ def main(): if f: i, wl = checkResultWhitelist(f) - dbg("testcase: %r, whitelist match: %r", t, wl) + dbg("testcase: %r, allowlist match: %r", t, wl) wl_stats.setdefault(i, []).append(f) level = wl.get('loglevel', logging.DEBUG) logFailure(f, level)@@ -561,9 +561,9 @@ def main(): if args.debug: stats = sorted([(len(wl_stats.get(i, [])), wl) for i, wl in - enumerate(ERROR_WHITELIST)], key=lambda x: x[0]) + enumerate(ERROR_ALLOWLIST)], key=lambda x: x[0]) for count, wl in stats: - dbg("whitelist entry stats: %d: %r", count, wl) + dbg("allowlist entry stats: %d: %r", count, wl) if fatal_failures: for f in fatal_failures:
Signature · 1 line
Alex Bennée
Re: [PATCH v2 4/8] scripts/device-crash-test: Replace the word 'whitelist'
Quoted 15 lines · Alex Bennée
Quoted 11 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "whitelist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Daniel P. Berrangé <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- scripts/device-crash-test | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
Quoted 5 lines
scripts/device-crash-test ERROR_WHITELIST = [ · line 190
Quoted 3 lines
def
whitelistTestCaseMatch(wl, t):scripts/device-crash-test +1
-1- """Check if a test case specification can match a whitelist entry + """Check if a test case specification can match a allowlist entrySeems like the function names (and params?) could be updated as well.
Eduardo already fixed/merged this one :)
See 1a14d4e16af ("device-crash-test: Remove problematic language")
PATCH v2 5/8 seccomp: Replace the word 'blacklist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
--- softmmu/qemu-seccomp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
softmmu/qemu-seccomp.c +8 -8
@@ -45,8 +45,8 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = { { .arg = 1, .op = SCMP_CMP_NE, .datum_a = SCHED_IDLE } }; -static const struct QemuSeccompSyscall blacklist[] = { -/* default set of syscalls to blacklist */ +static const struct QemuSeccompSyscall denylist[] = { +/* default set of syscalls to denylist */ {SCMP_SYS (reboot),QEMU_SECCOMP_SET_DEFAULT }, {SCMP_SYS (swapon),QEMU_SECCOMP_SET_DEFAULT }, {SCMP_SYS (swapoff),QEMU_SECCOMP_SET_DEFAULT },
@@ -175,18 +175,18 @@ static int seccomp_start(uint32_t seccomp_opts, Error **errp) goto seccomp_return; } -for (i =0 ; i <ARRAY_SIZE (blacklist); i++) { +for (i =0 ; i <ARRAY_SIZE (denylist); i++) {uint32_t action; -if (!(seccomp_opts & blacklist[i].set)) { +if (!(seccomp_opts & denylist[i].set)) {continue ; } - action =qemu_seccomp_get_action (blacklist[i].set); - rc =seccomp_rule_add_array (ctx, action, blacklist[i].num, - blacklist[i].narg, blacklist[i].arg_cmp); + action =qemu_seccomp_get_action (denylist[i].set); + rc =seccomp_rule_add_array (ctx, action, denylist[i].num, + denylist[i].narg, denylist[i].arg_cmp);if (rc <0 ) {error_setg_errno (errp, -rc, -"failed to add seccomp blacklist rules" ); +"failed to add seccomp denylist rules" ); goto seccomp_return; } }
Signature · 1 line
2.26.2
Re: [PATCH v2 5/8] seccomp: Replace the word 'blacklist'
Quoted 9 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Daniel P. Berrangé <[email protected]>Acked-by Eduardo Otubo <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Signature · 1 line
Alex Bennée
Re: [PATCH v2 5/8] seccomp: Replace the word 'blacklist'
In reply to Philippe Mathieu-DaudéQuoted 18 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Daniel P. Berrangé <[email protected]>Acked-by Eduardo Otubo <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- softmmu/qemu-seccomp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)softmmu/qemu-seccomp.c +0
-0
softmmu/qemu-seccomp.c const struct scmp_arg_cmp sched_setscheduler_arg[] = { · line 49
Quoted 7 lines
softmmu/qemu-seccomp.c +2
-2@@ -45,8 +45,8 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = { { .arg = 1, .op = SCMP_CMP_NE, .datum_a = SCHED_IDLE } }; -static const struct QemuSeccompSyscall blacklist[] = { -/* default set of syscalls to blacklist */ +static const struct QemuSeccompSyscall denylist[] = { +/* default set of syscalls to denylist */
Since it's used as a verb in the comment, I'd rather say something like this here:
/* default set of syscalls that should get blocked */
... "denylist" still does not sound like a verb to me.
Thomas
PATCH v2 6/8 qemu-options: Replace the word 'blacklist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
---
v2: Reword (danpb)
--- qemu-options.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
qemu-options.hx +3 -3
@@ -4274,12 +4274,12 @@ DEF("sandbox", HAS_ARG, QEMU_OPTION_sandbox, \ " use 'obsolete' to allow obsolete system calls that are provided\n" \ " by the kernel, but typically no longer used by modern\n" \ " C library implementations.\n" \ - " use 'elevateprivileges' to allow or deny QEMU process to elevate\n" \ - " its privileges by blacklisting all set*uid|gid system calls.\n" \ + " use 'elevateprivileges' to allow or deny the QEMU process ability\n" \ + " to elevate privileges using set*uid|gid system calls.\n" \ " The value 'children' will deny set*uid|gid system calls for\n" \ " main QEMU process but will allow forks and execves to run unprivileged\n" \ " use 'spawn' to avoid QEMU to spawn new threads or processes by\n" \ - " blacklisting *fork and execve\n" \ + " blocking *fork and execve\n" \ " use 'resourcecontrol' to disable process affinity and schedular priority\n", QEMU_ARCH_ALL) SRST
Signature · 1 line
2.26.2
Re: [PATCH v2 6/8] qemu-options: Replace the word 'blacklist'
Quoted 23 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
v2: Reword (danpb)--- qemu-options.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)qemu-options.hx +0
-2@@ -4274,12 +4274,12 @@ DEF("sandbox", HAS_ARG, QEMU_OPTION_sandbox, \ " use 'obsolete' to allow obsolete system calls that are provided\n" \ " by the kernel, but typically no longer used by modern\n" \ " C library implementations.\n" \ - " use 'elevateprivileges' to allow or deny QEMU process to elevate\n" \ - " its privileges by blacklisting all set*uid|gid system calls.\n" \
qemu-options.hx DEF("sandbox", HAS_ARG, QEMU_OPTION_sandbox, \ · line 4285
Quoted 10 lines
qemu-options.hx +3
-1+ " use 'elevateprivileges' to allow or deny the QEMU process ability\n" \ + " to elevate privileges using set*uid|gid system calls.\n" \ " The value 'children' will deny set*uid|gid system calls for\n" \ " main QEMU process but will allow forks and execves to run unprivileged\n" \ " use 'spawn' to avoid QEMU to spawn new threads or processes by\n" \ - " blacklisting *fork and execve\n" \ + " blocking *fork and execve\n" \ " use 'resourcecontrol' to disable process affinity and schedular priority\n", QEMU_ARCH_ALL) SRST
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
PATCH v2 7/8 tests/fp/fp-test: Replace the word 'blacklist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
--- tests/fp/fp-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/fp/fp-test.c +4 -4
@@ -123,7 +123,7 @@ static void not_implemented(void)fprintf (stderr,"Not implemented.\n" ); } -static bool blacklisted (unsigned op,int rmode) +static bool is_allowed (unsigned op,int rmode) {/* odd has not been implemented for any 80-bit ops */ if (rmode == softfloat_round_odd) {
@@ -161,10 +161,10 @@ static bool blacklisted(unsigned op, int rmode)case F32_TO_EXTF80 :case F64_TO_EXTF80 :case F128_TO_EXTF80 : -return true; +return false; } } -return false; +return true; }static void do_testfloat (int op,int rmode,bool exact)
@@ -194,7 +194,7 @@ static void do_testfloat(int op, int rmode, bool exact)verCases_writeFunctionName (stderr);fputs ("\n" , stderr); -if (blacklisted (op, rmode)) { +if (!is_allowed (op, rmode)) {not_implemented ();return ; }
Signature · 1 line
2.26.2
PATCH v2 8/8 hw/vfio/pci-quirks: Replace the word 'blacklist'
In reply to Philippe Mathieu-DaudéFollow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
--- hw/vfio/pci.h | 2 +- hw/vfio/pci-quirks.c | 14 +++++++------- hw/vfio/pci.c | 4 ++-- hw/vfio/trace-events | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-)
hw/vfio/pci.h +1 -1
@@ -197,7 +197,7 @@ void vfio_pci_write_config(PCIDevice *pdev,uint64_t vfio_vga_read (void *opaque,hwaddr addr,unsigned size);void vfio_vga_write (void *opaque,hwaddr addr,uint64_t data,unsigned size); -bool vfio_blacklist_opt_rom (VFIOPCIDevice *vdev); +bool vfio_opt_rom_in_denylist (VFIOPCIDevice *vdev);void vfio_vga_quirk_setup (VFIOPCIDevice *vdev);void vfio_vga_quirk_exit (VFIOPCIDevice *vdev);void vfio_vga_quirk_finalize (VFIOPCIDevice *vdev);
hw/vfio/pci-quirks.c +7 -7
@@ -43,19 +43,19 @@static const struct {uint32_t vendor;uint32_t device; -} romblacklist[] = { +} rom_denylist[] = { {0x14e4 ,0x168e },/* Broadcom BCM 57810 */ }; -bool vfio_blacklist_opt_rom (VFIOPCIDevice *vdev) +bool vfio_opt_rom_in_denylist (VFIOPCIDevice *vdev) {int i; -for (i =0 ; i <ARRAY_SIZE (romblacklist); i++) { -if (vfio_pci_is (vdev, romblacklist[i].vendor, romblacklist[i].device)) { -trace_vfio_quirk_rom_blacklisted (vdev->vbasedev.name, - romblacklist[i].vendor, - romblacklist[i].device); +for (i =0 ; i <ARRAY_SIZE (rom_denylist); i++) { +if (vfio_pci_is (vdev, rom_denylist[i].vendor, rom_denylist[i].device)) { +trace_vfio_quirk_rom_in_denylist (vdev->vbasedev.name, + rom_denylist[i].vendor, + rom_denylist[i].device);return true; } }
hw/vfio/pci.c +2 -2
@@ -900,7 +900,7 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev)if (vdev->pdev.romfile || !vdev->pdev.rom_bar) {/* Since pci handles romfile, just print a message and return */ -if (vfio_blacklist_opt_rom (vdev) && vdev->pdev.romfile) { +if (vfio_opt_rom_in_denylist (vdev) && vdev->pdev.romfile) {warn_report ("Device at %s is known to cause system instability" " issues during option rom execution" , vdev->vbasedev.name);
@@ -927,7 +927,7 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev)return ; } -if (vfio_blacklist_opt_rom (vdev)) { +if (vfio_opt_rom_in_denylist (vdev)) {if (dev->opts &&qemu_opt_get (dev->opts,"rombar" )) { warn_report("Device at %s is known to cause system instability" " issues during option rom execution",
hw/vfio/trace-events +1 -1
@@ -49,7 +49,7 @@ vfio_pci_emulated_sub_vendor_id(const char *name, uint16_t val) "%s 0x%04x" vfio_pci_emulated_sub_device_id(const char *name, uint16_t val) "%s 0x%04x" # pci-quirks.c -vfio_quirk_rom_blacklisted(const char *name, uint16_t vid, uint16_t did) "%s %04x:%04x" +vfio_quirk_rom_in_denylist(const char *name, uint16_t vid, uint16_t did) "%s %04x:%04x" vfio_quirk_generic_window_address_write(const char *name, const char * region_name, uint64_t data) "%s %s 0x%"PRIx64 vfio_quirk_generic_window_data_read(const char *name, const char * region_name, uint64_t data) "%s %s 0x%"PRIx64 vfio_quirk_generic_window_data_write(const char *name, const char * region_name, uint64_t data) "%s %s 0x%"PRIx64
Signature · 1 line
2.26.2
Re: [PATCH v2 8/8] hw/vfio/pci-quirks: Replace the word 'blacklist'
Quoted 10 lines · On Fri, 5 Feb 2021 18:18:17 +0100 Philippe Mathieu-Daudé <[email protected]>…
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Alex Williamson <[email protected]>Acked-by Alex Williamson <[email protected]>Reviewed-by Daniel P. Berrangé <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 6 lines
--- hw/vfio/pci.h | 2 +- hw/vfio/pci-quirks.c | 14 +++++++------- hw/vfio/pci.c | 4 ++-- hw/vfio/trace-events | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-)
I thought someone might grab the whole series, but since that hasn't happened yet, I've queued this one. Thanks,
Alex
Quoted 80 lines
hw/vfio/pci.h +1
-1@@ -197,7 +197,7 @@ void vfio_pci_write_config(PCIDevice *pdev,uint64_t vfio_vga_read (void *opaque,hwaddr addr,unsigned size);void vfio_vga_write (void *opaque,hwaddr addr,uint64_t data,unsigned size); -bool vfio_blacklist_opt_rom (VFIOPCIDevice *vdev); +bool vfio_opt_rom_in_denylist (VFIOPCIDevice *vdev);void vfio_vga_quirk_setup (VFIOPCIDevice *vdev);void vfio_vga_quirk_exit (VFIOPCIDevice *vdev);void vfio_vga_quirk_finalize (VFIOPCIDevice *vdev);hw/vfio/pci-quirks.c +7
-7@@ -43,19 +43,19 @@static const struct {uint32_t vendor;uint32_t device; -} romblacklist[] = { +} rom_denylist[] = { {0x14e4 ,0x168e },/* Broadcom BCM 57810 */ }; -bool vfio_blacklist_opt_rom (VFIOPCIDevice *vdev) +bool vfio_opt_rom_in_denylist (VFIOPCIDevice *vdev) {int i; -for (i =0 ; i <ARRAY_SIZE (romblacklist); i++) { -if (vfio_pci_is (vdev, romblacklist[i].vendor, romblacklist[i].device)) { -trace_vfio_quirk_rom_blacklisted (vdev->vbasedev.name, - romblacklist[i].vendor, - romblacklist[i].device); +for (i =0 ; i <ARRAY_SIZE (rom_denylist); i++) { +if (vfio_pci_is (vdev, rom_denylist[i].vendor, rom_denylist[i].device)) { +trace_vfio_quirk_rom_in_denylist (vdev->vbasedev.name, + rom_denylist[i].vendor, + rom_denylist[i].device);return true; } }hw/vfio/pci.c +2
-2@@ -900,7 +900,7 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev)if (vdev->pdev.romfile || !vdev->pdev.rom_bar) {/* Since pci handles romfile, just print a message and return */ -if (vfio_blacklist_opt_rom (vdev) && vdev->pdev.romfile) { +if (vfio_opt_rom_in_denylist (vdev) && vdev->pdev.romfile) {warn_report ("Device at %s is known to cause system instability" " issues during option rom execution" , vdev->vbasedev.name);@@ -927,7 +927,7 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev)return ; } -if (vfio_blacklist_opt_rom (vdev)) { +if (vfio_opt_rom_in_denylist (vdev)) {if (dev->opts &&qemu_opt_get (dev->opts,"rombar" )) { warn_report("Device at %s is known to cause system instability" " issues during option rom execution",hw/vfio/trace-events +1
-1@@ -49,7 +49,7 @@ vfio_pci_emulated_sub_vendor_id(const char *name, uint16_t val) "%s 0x%04x" vfio_pci_emulated_sub_device_id(const char *name, uint16_t val) "%s 0x%04x" # pci-quirks.c -vfio_quirk_rom_blacklisted(const char *name, uint16_t vid, uint16_t did) "%s %04x:%04x" +vfio_quirk_rom_in_denylist(const char *name, uint16_t vid, uint16_t did) "%s %04x:%04x" vfio_quirk_generic_window_address_write(const char *name, const char * region_name, uint64_t data) "%s %s 0x%"PRIx64 vfio_quirk_generic_window_data_read(const char *name, const char * region_name, uint64_t data) "%s %s 0x%"PRIx64 vfio_quirk_generic_window_data_write(const char *name, const char * region_name, uint64_t data) "%s %s 0x%"PRIx64
Re: [PATCH v2 8/8] hw/vfio/pci-quirks: Replace the word 'blacklist'
Quoted 20 lines · Alex Williamson
Quoted 10 lines · On Fri, 5 Feb 2021 18:18:17 +0100 Philippe Mathieu-Daudé <[email protected]>…
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately.
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Reviewed-by Alex Williamson <[email protected]>Acked-by Alex Williamson <[email protected]>Reviewed-by Daniel P. Berrangé <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>Quoted 6 lines
--- hw/vfio/pci.h | 2 +- hw/vfio/pci-quirks.c | 14 +++++++------- hw/vfio/pci.c | 4 ++-- hw/vfio/trace-events | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-)
Quoted 2 lines
I thought someone might grab the whole series, but since that hasn't happened yet, I've queued this one. Thanks,
Thanks :)
Hi Laurent,
Quoted 6 lines · Philippe Mathieu-Daudé
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "blacklist" and "whitelist" appropriately.
Series expected to go via the qemu-trivial@ tree.
I forgot to Cc qemu-trivial@ :/ The series is now fully reviewed :)
Quoted 11 lines
[*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md
Philippe Mathieu-Daudé (8):
ui: Replace the word 'whitelist'tools/virtiofsd: Replace the word 'whitelist'scripts/tracetool: Replace the word 'whitelist'scripts/device-crash-test: Replace the word 'whitelist'
seccomp: Replace the word 'blacklist'
qemu-options: Replace the word 'blacklist' tests/fp/fp-test: Replace the word 'blacklist' hw/vfio/pci-quirks: Replace the word 'blacklist'