mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
src/basic: rename uid-alloc-range.[ch] to uid-classification.[ch]
We had both uid-range.h and uid-alloc-range.h. The latter now contains helpers like {uid,gid}_is_{system,dynamic,container}(), uid_for_system_journal(), so the existing name is outdated. I think the uid-range.[ch] should stay separate because it has a bunch of helpers for parsing and printing of uid ranges. So let's rename as in $subject to better reflect the contents of the file and make the two sets of files harder to confuse.
This commit is contained in:
parent
eb7d7d14fb
commit
8e1ac16bc6
@ -96,7 +96,7 @@ basic_sources = files(
|
||||
'terminal-util.c',
|
||||
'time-util.c',
|
||||
'tmpfile-util.c',
|
||||
'uid-alloc-range.c',
|
||||
'uid-classification.c',
|
||||
'uid-range.c',
|
||||
'unit-def.c',
|
||||
'unit-file.c',
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "fileio.h"
|
||||
#include "missing_threads.h"
|
||||
#include "string-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
|
||||
static const UGIDAllocationRange default_ugid_allocation_range = {
|
@ -20,7 +20,7 @@
|
||||
#include "stdio-util.h"
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
|
||||
/* Takes a value generated randomly or by hashing and turns it into a UID in the right range */
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include "strv.h"
|
||||
#include "sync-util.h"
|
||||
#include "tmpfile-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
|
||||
/* The maximum size up to which we process coredumps. We use 1G on 32-bit systems, and 32G on 64-bit systems */
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include "strv.h"
|
||||
#include "terminal-util.h"
|
||||
#include "tmpfile-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
#include "vpick.h"
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "rlimit-util.h"
|
||||
#include "spawn-polkit-agent.h"
|
||||
#include "terminal-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-record.h"
|
||||
#include "user-record-password-quality.h"
|
||||
#include "user-record-show.h"
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "stat-util.h"
|
||||
#include "string-table.h"
|
||||
#include "strv.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-record-password-quality.h"
|
||||
#include "user-record-sign.h"
|
||||
#include "user-record-util.h"
|
||||
|
@ -56,7 +56,7 @@
|
||||
#include "string-table.h"
|
||||
#include "string-util.h"
|
||||
#include "syslog-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
#include "varlink-io.systemd.Journal.h"
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include "string-util.h"
|
||||
#include "strv.h"
|
||||
#include "syslog-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
|
||||
#define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "strv.h"
|
||||
#include "terminal-util.h"
|
||||
#include "tmpfile-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
|
||||
#define RELEASE_USEC (20*USEC_PER_SEC)
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "string-table.h"
|
||||
#include "strv.h"
|
||||
#include "tmpfile-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "unit-name.h"
|
||||
#include "user-util.h"
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
||||
#include "string-util.h"
|
||||
#include "tomoyo-util.h"
|
||||
#include "tpm2-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
#include "virt.h"
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "group-record.h"
|
||||
#include "strv.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
|
||||
GroupRecord* group_record_new(void) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "rlimit-util.h"
|
||||
#include "string-table.h"
|
||||
#include "strv.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-record.h"
|
||||
#include "user-util.h"
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "strv.h"
|
||||
#include "sync-util.h"
|
||||
#include "tmpfile-util-label.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "uid-range.h"
|
||||
#include "user-util.h"
|
||||
#include "utf8.h"
|
||||
|
@ -171,7 +171,7 @@ simple_tests += files(
|
||||
'test-terminal-util.c',
|
||||
'test-tmpfile-util.c',
|
||||
'test-udev-util.c',
|
||||
'test-uid-alloc-range.c',
|
||||
'test-uid-classification.c',
|
||||
'test-uid-range.c',
|
||||
'test-umask-util.c',
|
||||
'test-unaligned.c',
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include "tests.h"
|
||||
#include "tmpfile-util.h"
|
||||
#include "tomoyo-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
#include "user-util.h"
|
||||
#include "virt.h"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "fs-util.h"
|
||||
#include "tests.h"
|
||||
#include "tmpfile-util.h"
|
||||
#include "uid-alloc-range.h"
|
||||
#include "uid-classification.h"
|
||||
|
||||
static void test_read_login_defs_one(const char *path) {
|
||||
log_info("/* %s(\"%s\") */", __func__, path ?: "<custom>");
|
Loading…
x
Reference in New Issue
Block a user