mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
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
ee6b974c41
commit
930d4ffa56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119317
@ -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