@@ -32,7 +32,7 @@ enum subid_status {
3232};
3333
3434/*
35- * libsubid_init : initialize libsubid
35+ * subid_init : initialize libsubid
3636 *
3737 * @progname: Name to display as program. If NULL, then "(libsubid)" will be
3838 * shown in error messages.
@@ -45,10 +45,10 @@ enum subid_status {
4545 *
4646 * Returns false if an error occurred.
4747 */
48- bool libsubid_init (const char * progname , FILE * logfd );
48+ bool subid_init (const char * progname , FILE * logfd );
4949
5050/*
51- * get_subuid_ranges : return a list of UID ranges for a user
51+ * subid_get_uid_ranges : return a list of UID ranges for a user
5252 *
5353 * @owner: username being queried
5454 * @ranges: a pointer to an array of subid_range structs in which the result
@@ -58,10 +58,10 @@ bool libsubid_init(const char *progname, FILE *logfd);
5858 *
5959 * returns: number of ranges found, ir < 0 on error.
6060 */
61- int get_subuid_ranges (const char * owner , struct subid_range * * ranges );
61+ int subid_get_uid_ranges (const char * owner , struct subid_range * * ranges );
6262
6363/*
64- * get_subgid_ranges : return a list of GID ranges for a user
64+ * subid_get_gid_ranges : return a list of GID ranges for a user
6565 *
6666 * @owner: username being queried
6767 * @ranges: a pointer to an array of subid_range structs in which the result
@@ -71,10 +71,10 @@ int get_subuid_ranges(const char *owner, struct subid_range **ranges);
7171 *
7272 * returns: number of ranges found, ir < 0 on error.
7373 */
74- int get_subgid_ranges (const char * owner , struct subid_range * * ranges );
74+ int subid_get_gid_ranges (const char * owner , struct subid_range * * ranges );
7575
7676/*
77- * get_subuid_owners : return a list of uids to which the given uid has been
77+ * subid_get_uid_owners : return a list of uids to which the given uid has been
7878 * delegated.
7979 *
8080 * @uid: The subuid being queried
@@ -83,10 +83,10 @@ int get_subgid_ranges(const char *owner, struct subid_range **ranges);
8383 *
8484 * Returns the number of uids returned, or < 0 on error.
8585 */
86- int get_subuid_owners (uid_t uid , uid_t * * owner );
86+ int subid_get_uid_owners (uid_t uid , uid_t * * owner );
8787
8888/*
89- * get_subgid_owners : return a list of uids to which the given gid has been
89+ * subid_get_gid_owners : return a list of uids to which the given gid has been
9090 * delegated.
9191 *
9292 * @uid: The subgid being queried
@@ -95,10 +95,10 @@ int get_subuid_owners(uid_t uid, uid_t **owner);
9595 *
9696 * Returns the number of uids returned, or < 0 on error.
9797 */
98- int get_subgid_owners (gid_t gid , uid_t * * owner );
98+ int subid_get_gid_owners (gid_t gid , uid_t * * owner );
9999
100100/*
101- * grant_subuid_range : assign a subuid range to a user
101+ * subid_grant_uid_range : assign a subuid range to a user
102102 *
103103 * @range: pointer to a struct subordinate_range detailing the UID range
104104 * to allocate. ->owner must be the username, and ->count must be
@@ -109,10 +109,10 @@ int get_subgid_owners(gid_t gid, uid_t **owner);
109109 * then the range from (range->start, range->start + range->count) will
110110 * be delegated to range->owner.
111111 */
112- bool grant_subuid_range (struct subordinate_range * range , bool reuse );
112+ bool subid_grant_uid_range (struct subordinate_range * range , bool reuse );
113113
114114/*
115- * grant_subsid_range : assign a subgid range to a user
115+ * subid_grant_gid_range : assign a subgid range to a user
116116 *
117117 * @range: pointer to a struct subordinate_range detailing the GID range
118118 * to allocate. ->owner must be the username, and ->count must be
@@ -123,29 +123,29 @@ bool grant_subuid_range(struct subordinate_range *range, bool reuse);
123123 * then the range from (range->start, range->start + range->count) will
124124 * be delegated to range->owner.
125125 */
126- bool grant_subgid_range (struct subordinate_range * range , bool reuse );
126+ bool subid_grant_gid_range (struct subordinate_range * range , bool reuse );
127127
128128/*
129- * ungrant_subuid_range : remove a subuid allocation.
129+ * subid_ungrant_uid_range : remove a subuid allocation.
130130 *
131131 * @range: pointer to a struct subordinate_range detailing the UID allocation
132132 * to remove.
133133 *
134134 * Returns true if successful, false if it failed, for instance if the
135135 * delegation did not exist.
136136 */
137- bool ungrant_subuid_range (struct subordinate_range * range );
137+ bool subid_ungrant_uid_range (struct subordinate_range * range );
138138
139139/*
140- * ungrant_subuid_range : remove a subgid allocation.
140+ * subid_ungrant_gid_range : remove a subgid allocation.
141141 *
142142 * @range: pointer to a struct subordinate_range detailing the GID allocation
143143 * to remove.
144144 *
145145 * Returns true if successful, false if it failed, for instance if the
146146 * delegation did not exist.
147147 */
148- bool ungrant_subgid_range (struct subordinate_range * range );
148+ bool subid_ungrant_gid_range (struct subordinate_range * range );
149149
150150#define SUBID_NFIELDS 3
151151#endif
0 commit comments