Make the elements argument to mac_prepare() be const.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
598a90a3bd
commit
f62e7b4be7
@ -331,7 +331,7 @@ mac_to_text(struct mac *mac, char **text)
|
||||
}
|
||||
|
||||
int
|
||||
mac_prepare(struct mac **mac, char *elements)
|
||||
mac_prepare(struct mac **mac, const char *elements)
|
||||
{
|
||||
|
||||
if (strlen(elements) >= MAC_MAX_LABEL_BUF_LEN)
|
||||
|
@ -86,7 +86,7 @@ int mac_get_link(const char *_path, mac_t _label);
|
||||
int mac_get_pid(pid_t _pid, mac_t _label);
|
||||
int mac_get_proc(mac_t _label);
|
||||
int mac_is_present(const char *_policyname);
|
||||
int mac_prepare(mac_t *_label, char *_elements);
|
||||
int mac_prepare(mac_t *_label, const char *_elements);
|
||||
int mac_prepare_file_label(mac_t *_label);
|
||||
int mac_prepare_ifnet_label(mac_t *_label);
|
||||
int mac_prepare_process_label(mac_t *_label);
|
||||
|
@ -86,7 +86,7 @@ int mac_get_link(const char *_path, mac_t _label);
|
||||
int mac_get_pid(pid_t _pid, mac_t _label);
|
||||
int mac_get_proc(mac_t _label);
|
||||
int mac_is_present(const char *_policyname);
|
||||
int mac_prepare(mac_t *_label, char *_elements);
|
||||
int mac_prepare(mac_t *_label, const char *_elements);
|
||||
int mac_prepare_file_label(mac_t *_label);
|
||||
int mac_prepare_ifnet_label(mac_t *_label);
|
||||
int mac_prepare_process_label(mac_t *_label);
|
||||
|
Loading…
Reference in New Issue
Block a user