summaryrefslogtreecommitdiffstats
path: root/src/dissect
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-08 12:14:16 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-08 21:41:03 +0100
commitec0c10fc9db6459d78f0b3970a0f7a34c88e6db3 (patch)
tree1045dbd12718fcdf0faef9fb0a78b3a5ad14a02d /src/dissect
parentudev/net: add three settings for ethtool features (#35906) (diff)
downloadsystemd-ec0c10fc9db6459d78f0b3970a0f7a34c88e6db3.tar.xz
systemd-ec0c10fc9db6459d78f0b3970a0f7a34c88e6db3.zip
user-classification: add new "foreign" UID range
This makes the UID range configurable via build time options, but of course it really shouldn't be changed. The default range I picked is outside even of IPAs current (ridiculously large) allocation ranges, hence hopefully minimizes conflicts.
Diffstat (limited to 'src/dissect')
-rw-r--r--src/dissect/dissect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c
index 91f0f1de13..cb51d71384 100644
--- a/src/dissect/dissect.c
+++ b/src/dissect/dissect.c
@@ -1199,7 +1199,7 @@ static const char *pick_color_for_uid_gid(uid_t uid) {
return ansi_normal(); /* files in disk images are typically owned by root and other system users, no issue there */
if (uid_is_dynamic(uid))
return ansi_highlight_red(); /* files should never be owned persistently by dynamic users, and there are just no excuses */
- if (uid_is_container(uid))
+ if (uid_is_container(uid) || uid_is_foreign(uid))
return ansi_highlight_cyan();
return ansi_highlight();