summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-08-22 17:49:59 +0000
committerrwatson <rwatson@FreeBSD.org>2003-08-22 17:49:59 +0000
commitf62e7b4be7705785731764278b48512c7d2c8942 (patch)
treea0b81387ac24b4e7677b4724d6ed1a9e498f5635
parent598a90a3bdeb68fc5fe0b64e43e4f44fa1b47931 (diff)
downloadFreeBSD-src-f62e7b4be7705785731764278b48512c7d2c8942.zip
FreeBSD-src-f62e7b4be7705785731764278b48512c7d2c8942.tar.gz
Make the elements argument to mac_prepare() be const.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
-rw-r--r--lib/libc/posix1e/mac.c2
-rw-r--r--sys/security/mac/mac_framework.h2
-rw-r--r--sys/sys/mac.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/posix1e/mac.c b/lib/libc/posix1e/mac.c
index 3426ac3..def4bb2 100644
--- a/lib/libc/posix1e/mac.c
+++ b/lib/libc/posix1e/mac.c
@@ -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)
diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h
index 735b07a..0b9227b 100644
--- a/sys/security/mac/mac_framework.h
+++ b/sys/security/mac/mac_framework.h
@@ -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);
diff --git a/sys/sys/mac.h b/sys/sys/mac.h
index 735b07a..0b9227b 100644
--- a/sys/sys/mac.h
+++ b/sys/sys/mac.h
@@ -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);
OpenPOWER on IntegriCloud