summaryrefslogtreecommitdiffstats
path: root/sys/compat/linprocfs/linprocfs.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-09-30 19:42:41 +0000
committerdes <des@FreeBSD.org>2001-09-30 19:42:41 +0000
commit8f0a1f0a279da156377cf56257332370624b7749 (patch)
treefe7e89ebcb518f050d19efb757b3f16587445171 /sys/compat/linprocfs/linprocfs.c
parent9ace52fc69897b05a41322c0b6f339ee25e24393 (diff)
downloadFreeBSD-src-8f0a1f0a279da156377cf56257332370624b7749.zip
FreeBSD-src-8f0a1f0a279da156377cf56257332370624b7749.tar.gz
Specify readability and / or writeability for all nodes that need it.
Diffstat (limited to 'sys/compat/linprocfs/linprocfs.c')
-rw-r--r--sys/compat/linprocfs/linprocfs.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 6286fc6..33071d9 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -721,18 +721,18 @@ linprocfs_domodules(PFS_FILL_ARGS)
static struct pfs_node linprocfs_proc_nodes[] = {
PFS_THIS,
PFS_PARENT,
- PFS_FILE( "cmdline", linprocfs_doproccmdline, NULL, NULL, 0),
- PFS_SYMLINK("exe", linprocfs_doexelink, NULL, NULL, 0),
- /* PFS_FILE( "mem", procfs_domem, NULL, NULL, 0), */
- PFS_FILE( "stat", linprocfs_doprocstat, NULL, NULL, 0),
- PFS_FILE( "status", linprocfs_doprocstatus, NULL, NULL, 0),
+ PFS_FILE( "cmdline", linprocfs_doproccmdline,NULL, NULL, PFS_RD),
+ PFS_SYMLINK("exe", linprocfs_doexelink, NULL, NULL, 0),
+ /* PFS_FILE( "mem", procfs_domem, NULL, NULL, PFS_RDWR|PFS_RAW), */
+ PFS_FILE( "stat", linprocfs_doprocstat, NULL, NULL, PFS_RD),
+ PFS_FILE( "status", linprocfs_doprocstatus, NULL, NULL, PFS_RD),
PFS_LASTNODE
};
static struct pfs_node linprocfs_net_nodes[] = {
PFS_THIS,
PFS_PARENT,
- PFS_FILE( "dev", linprocfs_donetdev, NULL, NULL, 0),
+ PFS_FILE( "dev", linprocfs_donetdev, NULL, NULL, PFS_RD),
PFS_LASTNODE
};
@@ -740,20 +740,20 @@ static struct pfs_node linprocfs_root_nodes[] = {
PFS_THIS,
PFS_PARENT,
/* name flags uid gid mode data */
- PFS_FILE( "cmdline", linprocfs_docmdline, NULL, NULL, 0),
- PFS_FILE( "cpuinfo", linprocfs_docpuinfo, NULL, NULL, 0),
- PFS_FILE( "devices", linprocfs_dodevices, NULL, NULL, 0),
- PFS_FILE( "loadavg", linprocfs_doloadavg, NULL, NULL, 0),
- PFS_FILE( "meminfo", linprocfs_domeminfo, NULL, NULL, 0),
+ PFS_FILE( "cmdline", linprocfs_docmdline, NULL, NULL, PFS_RD),
+ PFS_FILE( "cpuinfo", linprocfs_docpuinfo, NULL, NULL, PFS_RD),
+ PFS_FILE( "devices", linprocfs_dodevices, NULL, NULL, PFS_RD),
+ PFS_FILE( "loadavg", linprocfs_doloadavg, NULL, NULL, PFS_RD),
+ PFS_FILE( "meminfo", linprocfs_domeminfo, NULL, NULL, PFS_RD),
#if 0
- PFS_FILE( "mdodules", linprocfs_domodules, NULL, NULL, 0),
+ PFS_FILE( "mdodules", linprocfs_domodules, NULL, NULL, PFS_RD),
#endif
- PFS_FILE( "stat", linprocfs_dostat, NULL, NULL, 0),
- PFS_FILE( "uptime", linprocfs_douptime, NULL, NULL, 0),
- PFS_FILE( "version", linprocfs_doversion, NULL, NULL, 0),
- PFS_DIR( "net", linprocfs_net_nodes, NULL, NULL, 0),
- PFS_PROCDIR( linprocfs_proc_nodes, NULL, NULL, 0),
- PFS_SYMLINK("self", linprocfs_doselflink, NULL, NULL, 0),
+ PFS_FILE( "stat", linprocfs_dostat, NULL, NULL, PFS_RD),
+ PFS_FILE( "uptime", linprocfs_douptime, NULL, NULL, PFS_RD),
+ PFS_FILE( "version", linprocfs_doversion, NULL, NULL, PFS_RD),
+ PFS_DIR( "net", linprocfs_net_nodes, NULL, NULL, 0),
+ PFS_PROCDIR( linprocfs_proc_nodes, NULL, NULL, 0),
+ PFS_SYMLINK("self", linprocfs_doselflink, NULL, NULL, 0),
PFS_LASTNODE
};
OpenPOWER on IntegriCloud