Make the elements argument to mac_prepare() be const.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
rwatson 2003-08-22 17:49:59 +00:00
parent 598a90a3bd
commit f62e7b4be7
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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);