mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Remove aa_query_label from SWIG bindings
This is one of those functions that never worked anyways, because it modified the passed-in label in place. Moreover, it is a low-level interface that requires its callers to manually construct a binary query. As such, it would be better not to expose it and to add wrappers like aa_query_file_path for the other query classes if that functionality is needed later. The removal of this function from the bindings was dropped from !1337 because it exposed functionality that was not present in wrappers around aa_query_label. However, upon further discussion, we decided that it'd be better to remove it now and add other wrappers to libapparmor itself if the functionality provided by the existing wrappers became insufficient. Signed-off-by: Ryan Lee <ryan.lee@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1352 Approved-by: John Johansen <john@jjmx.net> Merged-by: Ryan Lee <rlee287@yahoo.com>
This commit is contained in:
commit
5b141dd580
1 changed files with 0 additions and 2 deletions
|
@ -97,8 +97,6 @@ extern int aa_getprocattr(pid_t tid, const char *attr, char **label, char **mode
|
|||
extern int aa_gettaskcon(pid_t target, char **label, char **mode);
|
||||
extern int aa_getcon(char **label, char **mode);
|
||||
extern int aa_getpeercon(int fd, char **label, char **mode);
|
||||
extern int aa_query_label(uint32_t mask, char *query, size_t size, int *allowed,
|
||||
int *audited);
|
||||
extern int aa_query_file_path_len(uint32_t mask, const char *label,
|
||||
size_t label_len, const char *path,
|
||||
size_t path_len, int *allowed, int *audited);
|
||||
|
|
Loading…
Add table
Reference in a new issue