summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-10-24 00:07:30 +0000
committerrwatson <rwatson@FreeBSD.org>2002-10-24 00:07:30 +0000
commita20ce31a589e9e23445a90849727252ecd52ce91 (patch)
treef73db318a2d9760cf896be092cf15e5f29f06f7d /bin/ls/ls.h
parentc1f79de8c7e95092759b8bf882668ce50bc83a7c (diff)
downloadFreeBSD-src-a20ce31a589e9e23445a90849727252ecd52ce91.zip
FreeBSD-src-a20ce31a589e9e23445a90849727252ecd52ce91.tar.gz
Teach "ls -Z" to use the policy-agnostic MAC label interfaces rather
than the LOMAC-specific interfaces for listing MAC labels. This permits ls to view MAC labels in a manner similar to getfmac, when ls is used with the -l argument. Next generation LOMAC will use the MAC Framework so should "just" work with this and other policies. Not the prettiest code in the world, but then, neither is ls(1). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'bin/ls/ls.h')
-rw-r--r--bin/ls/ls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ls/ls.h b/bin/ls/ls.h
index ac1aaed..16c9ac9 100644
--- a/bin/ls/ls.h
+++ b/bin/ls/ls.h
@@ -45,7 +45,7 @@ extern long blocksize; /* block size units */
extern int f_accesstime; /* use time of last access */
extern int f_flags; /* show flags associated with a file */
extern int f_humanval; /* show human-readable file sizes */
-extern int f_lomac; /* show LOMAC attributes */
+extern int f_label; /* show MAC label */
extern int f_inode; /* print inode */
extern int f_longform; /* long listing format */
extern int f_octal; /* print unprintables in octal */
@@ -70,7 +70,7 @@ typedef struct {
int maxlen;
u_int s_block;
u_int s_flags;
- u_int s_lattr;
+ u_int s_label;
u_int s_group;
u_int s_inode;
u_int s_nlink;
@@ -82,6 +82,6 @@ typedef struct {
char *user;
char *group;
char *flags;
- char *lattr;
+ char *label;
char data[1];
} NAMES;
OpenPOWER on IntegriCloud