Commit Graph

298 Commits

Author SHA1 Message Date
manu 098ea45eb4 New README.plainrsa sample file 2006-12-10 05:52:10 +00:00
pooka fe53828f70 use command line flags to set various options 2006-12-07 22:49:04 +00:00
pooka 7e3489d64a write requires setattr, so do a dummy version to make write here work
again after the checkops kernel changes
2006-12-07 10:59:03 +00:00
pooka fb5e346800 counter-rototill for libpuffs change: unify all callback ops under
a single structure
2006-12-07 10:54:29 +00:00
pooka 44576f90f6 fix IO_APPEND for write 2006-12-05 23:14:13 +00:00
pooka 05b1899256 only count directories in the number of hard links to a directory 2006-12-05 14:32:03 +00:00
pooka 69dbc08863 update flag names 2006-12-01 12:50:52 +00:00
pooka 496f59a99f adapt to flags parameter for puffs_mainloop() 2006-11-30 05:38:54 +00:00
wiz fa34b615d2 Correct spelling of "immediate(ly)". From Zafer. 2006-11-24 21:23:07 +00:00
hubertf 1ee989e6be Don't try to handle symlinks on versions of the SSH File Transfer Protocol
that don't support it, e.g. the Solaris 9/x86 sshd (SSH-2.0-Sun_SSH_1.0;
..._1.1 from Solaris 10/x86 is fine)

OK'd by pooka@
2006-11-23 01:51:15 +00:00
elad 4b316db1d1 Introduce KAUTH_REQ_MACHDEP_{ALPHA,X86}_UNMANAGEDMEM to handle access
to unmanaged memory.

These are the last two securelevel references in the MD code.
2006-11-22 12:12:51 +00:00
pooka 118c65eb6d * update comments
* puffs_nextdent() takes a directory type, not vtype, so translate
  that before calling it.  fixes find & other fts-stuff.
2006-11-21 23:19:45 +00:00
pooka 5676e026f8 * change usage to ssshfs user@host:path mountpath
* assorted little fixes

ssshfs now works for practical uses
2006-11-21 23:09:23 +00:00
pooka 2773d88a59 do better directory link accounting, fix bug in readdir(). find, rm -rf,
etcetc. now work
2006-11-21 15:35:58 +00:00
pooka a9772ae2fb better accounting. e.g. du works now 2006-11-21 13:05:47 +00:00
pooka e7a63c481b don't recache directory listing in all operations that use a directory 2006-11-21 12:42:15 +00:00
pooka 8f2fd4cb28 reclaim needs some more work, so don't do anything there for now.
This is good especially for not crashing in unmount, which in turn
would cause unpleasantries without the very latest & greatest kernel
2006-11-21 02:31:48 +00:00
pooka 1d9515c070 today's fs-in-a-day: quick glue to tie puffs together with openssh
sftp code to accomplish something close to sshfs.  this basically
works, but there are some issues with directory grovelers still,
e.g. so untar won't work.  but it works for browsing mailboxes,
transferring large files, etcetc.
2006-11-21 00:54:06 +00:00
pooka 66e8fee83b implement puffs_write. It's now possible to change the values of
existing sysctl nodes (except for CTLTYPE_STRUCT).
2006-11-20 00:04:05 +00:00
pooka 4d33479aef * no more fsid
* no more start()
2006-11-18 12:41:06 +00:00
pooka a2646bee20 mount with PUFFSFLAG_NOCACHE 2006-11-17 17:48:51 +00:00
pooka 48697c774d do correct size calculation in getattr(). accidentally replaced that
with a dummy before commit.
2006-11-17 00:27:16 +00:00
pooka 2f8a6afe2a fs du jour: sysctlfs, which mounts an equivalent of "sysctl -a" as
a fs hierarchy.  This is currently ro, lacking features, and very
much unfinished in every other possible sense.  Should investigate
if this can share code with sbin/sysctl so that everything must
not be rewritten.
2006-11-14 21:37:36 +00:00
pooka ae357b8c97 adapt to libpuffs namespace change 2006-11-14 11:45:53 +00:00
pooka f173564d8b use generic dummies for sync and unmount 2006-11-14 11:27:35 +00:00
pooka 0ef848220b remove special-case handling for CREATE/RENAME from lookup() - this fs
does not need it, just return ENOENT
2006-11-13 20:59:48 +00:00
pooka bc745833ff fix link count for rootnode broken last week 2006-11-13 20:11:36 +00:00
pooka d666e1c0f4 play catchup with the rest of the world, i.e. shuffle stuff a bit 2006-11-09 13:11:52 +00:00
pooka 05310d3a05 give an estimation of the amount of free space 2006-11-08 11:25:29 +00:00
pooka da17507da9 adapt to new lookup signature 2006-11-07 22:11:17 +00:00
elad 7d27a7d8b8 Add example listener for the device scope.
While here, sync with reality.
2006-11-04 09:37:54 +00:00
pooka 8fdf9afc13 update appropriate timestamps after each operation. cvs works much
better now with dtfs /tmp
2006-10-27 14:03:52 +00:00
pooka 9638ee1464 relax typechecks so that all file types work (they were already supported) 2006-10-27 12:26:25 +00:00
pooka 0ba65a4c32 support mknod, essentially makes it possible to run dtfs as /dev 2006-10-26 22:53:25 +00:00
elad adf8d7aab2 Introduce KAUTH_REQ_NETWORK_SOCKET_OPEN, to check if opening a socket is
allowed. It takes three int * arguments indicating domain, type, and
protocol. Replace previous KAUTH_REQ_NETWORK_SOCKET_RAWSOCK with it (but
keep it still).

Places that used to explicitly check for privileged context now don't
need it anymore, so I replaced these with XXX comment indiacting it for
future reference.

Documented and updated examples as well.
2006-10-25 22:49:22 +00:00
pooka f9b7e6e829 Only nuke directory entry in remove and clear data completely only
when the node is reclaimed.  This makes dtfs preserve unix open file
semantics.
2006-10-25 18:18:16 +00:00
pooka 22ec7067d6 don't allow to read or write a directory 2006-10-23 16:20:39 +00:00
pooka 69fe36da66 dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
2006-10-23 00:44:53 +00:00
elad 305fe09181 Introduce a new action on the network scope, KAUTH_NETWORK_INTERFACE,
used to manage network interfaces.

Add four sub-actions to fulfill generic needs for now, until a more
carefully defined usage of the interface is documented: get, set,
getpriv, and setpriv.
2006-10-20 23:10:33 +00:00
elad fab05f403b Add a new ALTQ kauth(9) request, KAUTH_REQ_NETWORK_ALTQ_JOBS. 2006-10-20 22:02:54 +00:00
elad 8c494ca741 Introduce KAUTH_REQ_NETWORK_SOCKET_CANSEE. Since we're not gonna be having
credentials on sockets, at least not anytime soon, this is a way to check
if we can "look" at a socket. Later on when (and if) we do have socket
credentials, the interface usage remains the same because we pass the
socket.

This also fixes sysctl for inet/inet6 pcblist.
2006-10-13 15:39:18 +00:00
christos 25666bcae7 add a LINUX_MAKEDEV for ptmx 2006-09-22 15:33:08 +00:00
elad 5727e58f16 Obsolete old fingerprint generation scripts. 2006-09-16 21:03:11 +00:00
elad 6cb705e0b1 Add skeleton files to be used by developers interested in writing NetBSD
security models from scratch. Address issues both for in-tree integration
as well as distribution as LKMs.

Placed in the public domain.
2006-09-15 15:49:29 +00:00
lukem 7569b63e4d Remove a mirror that was decommissioned almost five years ago
and was removed from the mirrors database at the time.
Somehow this file slipped through the cracks...
2006-07-27 23:01:27 +00:00
mrg 9db1a19397 don't install crypto files with MKCRYPTO=no. with these changes, a
MKCRYPTO=no build completes.
2006-06-26 19:50:56 +00:00
rpaulo 5d222d28ff Add a hostapd.conf example based on the one distributed with hostapd. 2006-04-30 13:52:35 +00:00
jmmv bb99282370 Merge fstab.tmpfs into fstab.ramdisk so that the file names represent
concepts rather than specific file systems.  Suggested by hubertf@.
2005-12-24 12:59:21 +00:00
sketch 5fee310ead Fix typo: ammount -> amount. 2005-11-27 14:11:44 +00:00
elad 74bc6e6de2 Install fpgen.sh too. 2005-10-13 13:49:47 +00:00
jmmv 1631ceed60 Disable the /var/run entry and tell the user what to do to make it work
correctly.

While here, add two more sample entries.
2005-10-03 19:56:04 +00:00
simonb be630e4bf2 Split the fstab examples so that adding newer examples doesn't need a
shuffling of previous examples across line boundaries.
2005-09-30 12:55:13 +00:00
jmmv 3d17d70f0c Add a fstab.tmpfs sample file showing simple but common sample entries.
Suggested by martti@.
2005-09-29 21:06:43 +00:00
elad d095dfcecb Change examples; we're using /etc/signatures and not vexec.conf.
Change the message that appears at the end of the fingerprint generation
to match what the user really needs to do.
2005-09-03 10:22:21 +00:00
elad c38a64b2fe We have SHA2 in cksum(1); no need for digest from pkgsrc anymore. 2005-09-03 10:11:31 +00:00
blymn f115e176d8 New style fingerprint generation script. 2005-09-03 09:57:10 +00:00
rpaulo b07796b5b8 Added map_type = file to the global configuration. Else, we would get warnings
on amd boot saying the file wasn't executable.
2005-08-23 13:54:41 +00:00
manu 6cb285d965 Take into account file removal 2005-05-10 10:23:13 +00:00
hubertf bd55168e81 Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
2005-05-06 08:41:00 +00:00
hubertf 71be6dfd96 No devices on /usr -> mount -o nodev
No setuid programs in /var	-> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
2005-05-04 18:26:14 +00:00
xtraeme d5dac37f3b Install the new gen_rmd160 file too. 2005-04-21 09:57:03 +00:00
blymn 8387760ed1 Rototill of the verified exec functionality.
* We now use hash tables instead of a list to store the in kernel
    fingerprints.
  * Fingerprint methods handling has been made more flexible, it is now
    even simpler to add new methods.
  * the loader no longer passes in magic numbers representing the
    fingerprint method so veriexecctl is not longer kernel specific.
  * fingerprint methods can be tailored out using options in the kernel
    config file.
  * more fingerprint methods added - rmd160, sha256/384/512
  * veriexecctl can now report the fingerprint methods supported by the
    running kernel.
  * regularised the naming of some portions of veriexec.
2005-04-20 13:44:45 +00:00
hubertf 9ee7752f6f Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
2005-04-03 14:12:14 +00:00
thorpej 354f2a1004 Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
2005-02-19 16:55:02 +00:00
wiz 3f9411f688 Spell removable with only two es. Inspired by jmc@openbsd. 2004-04-19 12:44:09 +00:00
jmmv f630412f5f Add trailing semicolons to lines that need it. 2004-02-05 11:41:15 +00:00
jmmv 9be8f275ce xconsole is a global property, so move it to the global scope.
Fixes part of PR bin/23223.
2004-01-05 11:01:32 +00:00
abs 024a9509bc s/dails/dials/ in a comment 2003-10-02 21:32:56 +00:00
lukem fd483b4d81 provide commands required to create the syslog log files used by this config 2003-09-01 00:30:34 +00:00
lukem da5f4674a3 don't need to rotate /var/cron/log, as all.debug doesn't use it 2003-09-01 00:29:05 +00:00
jmmv a55ba0a54c Add example section for action mode. 2003-08-06 22:16:34 +00:00
jmmv 01144be932 Add a sample line for the new "modes" property. Fix a word. 2003-08-06 18:09:12 +00:00
salo 22a0ae4298 netbsd.org->NetBSD.org 2003-07-26 20:17:31 +00:00
david ada315648a Note that the /etc/apm/* scripts must be executable. 2003-03-10 16:14:37 +00:00
jmmv f556391190 Add a wsmoused sample configuration file. 2003-03-04 14:36:17 +00:00
jdolecek 800e198ba6 add example disktab file 2002-12-17 15:16:40 +00:00
blymn e644ca2e85 Added verified exec directory. 2002-11-23 10:25:56 +00:00
blymn c06c99cbd3 Example signature generating scripts. 2002-11-23 10:25:03 +00:00
blymn 1c475f17bc Removing due to rename of loader tool. 2002-11-23 10:21:17 +00:00
blymn 1baccad4de Added verifiedexec_load signature generator scripts. 2002-10-29 14:05:33 +00:00
jdolecek 074863cac2 Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
2002-05-04 19:43:57 +00:00
martin 876d3c9146 Add an example for the new "autoupdown" keyword. 2002-04-11 09:08:19 +00:00
martin fc467dcd20 Modify for new ISDN device/interface names. 2002-03-17 21:32:21 +00:00
mrg ffa430c2f0 add a newsyslog.conf that matches the all.debug. 2001-12-18 01:44:36 +00:00
lukem b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz 7632b5a399 Remove example file for sup.uk.netbsd.org, since that hasn't existed in
over two years. Addresses misc/10884 by David Brownlee.
2001-05-06 10:04:58 +00:00
wiz 2eef3cf67b Update to latest tariff change. 2001-04-22 22:17:40 +00:00
wiz 11aa81d3ba Update for 2001, and some typo fixes; some commented out additional
holidays depending on where exactly you live.
2001-04-22 22:15:43 +00:00
wiz d00466173d RCS Ids 2001-04-22 22:10:54 +00:00
dent 4e6f728497 SUP mirror at ftp.cs.umn.edu is gone. 2001-04-19 04:13:56 +00:00
eeh 0c31c28638 Treat all sparc machines the same. 2001-02-10 23:25:51 +00:00
martin 56d43050fc Enable ISDN examples. 2001-01-06 13:28:19 +00:00
martin 0a970e19e4 Import of ISDN4BSD configuration example files 2001-01-06 13:26:27 +00:00
thorpej d7f68b8aa0 Don't install a no-longer-present file. 2000-12-29 01:52:25 +00:00
is 70692a9b20 Gone since May 2000. 2000-12-28 22:29:57 +00:00
wiz 98e25ea2e6 Install adapted config file instead of old one. 2000-11-20 00:47:10 +00:00
wiz 3819ccc8d0 Adapt config file example to am-utils-6.0.4. 2000-11-20 00:46:09 +00:00
lukem 2e7cad82bb - only audioplay if the audio file exists
- replace logger with $LOGGER, which is defined to `logger -t apm'
- use 'mount -u ... -A -t ffs' instead of 'mount -u ... -a', since the
  latter won't work on already mounted file systems except for `/'.
2000-11-05 03:30:51 +00:00
bouyer d11b2e4d50 Example file for, guess what ? sup2.fr.netbsd.org. 2000-08-23 17:18:45 +00:00
soda f88536df95 s/nodevs/nodev/ for mount option. 2000-08-11 11:59:44 +00:00
soda 3681169826 fix thinko of revision 1.4.
the change seemed to intend "/net" and "/cd", rather than "/mnt" and "/cd".
2000-08-11 11:59:14 +00:00
soda 59d775afc1 sup.jp.netbsd.org doesn't require "hostbase=..." setting.
(probably other sup server should use same setting...)
2000-07-19 13:23:42 +00:00
soda a107b72108 remove "security" release, because it is obsolete.
(NetBSD is now almost export free.)
pointed out by Ken Wellsch <kwellsch@tampabay.rr.com> in current-users.
2000-07-19 13:22:31 +00:00
enami 0ce2dc56ef Go into the subdirectory syslogd. 2000-07-18 08:17:51 +00:00
lukem 481fca6e59 example syslogd(8) config files (to be installed as /etc/syslog.conf):
all.debug - each facility gets logged to its own file
2000-07-13 14:27:04 +00:00
soren df9f4f3541 sup.no is no more. 2000-07-10 23:41:46 +00:00
hubertf 112d4ac068 * Add some cut&paste ready commands for installing this
* Move audioplay to a shell function, to have one location where to
   change the noise-making
 * use /etc/rc.d/dhclient instead of doing it manually
 * when going line->battery and vice versa, adjust idle timeouts of
   harddisk (atactl), and add noatime,nodevmtime mount options.
   Inspired by htdocs/Documentation/power-mgmt/
2000-06-18 16:16:34 +00:00
gmcgarry 8c0b13837f pcmplay -> audioplay 2000-06-01 21:54:54 +00:00
hubertf bc5bb72e62 case syntax is
foo\
	bar)
		...

not

	foo)
	bar)
		...

Pointed out in PR 9524 by Jim Bernard <jbernard@mines.edu>
2000-03-03 04:27:17 +00:00
hubertf 45eb896114 add note on how to umount (as user), using amq.
Hint taken from a posting on tech-kern by
Wolfgang Rupprecht <wolfgang@wsrcc.com>
2000-01-25 02:39:52 +00:00
lukem 1bfa7f6fec improve examples:
- put local anon users into a separate class `localguest'
- use `localguest' to demonstrate the template features
- provide a better description of how the conversion commands work.
2000-01-09 13:19:19 +00:00
lukem 5391da8c86 sample ftpusers with lots of examples on the syntax 2000-01-08 13:30:59 +00:00
lukem fb456363d7 add example "limit" command 2000-01-08 13:17:17 +00:00
hubertf 1eab1548b8 Install apm example script.
Fixes PR 9105 by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
2000-01-03 22:48:30 +00:00
hubertf cabb78b63e Add share/examples/apm/script, an example script to put into
/etc/apm/{line,battery,standby,...}
1999-12-29 04:16:21 +00:00
lukem e5a5f7dc98 * add example upload, rateget, rateput entries
* add `--' to the argument string for the conversion commands (to prevent
  filenames starting with `-' from being interpreted as options)
1999-12-26 09:38:47 +00:00
itohy a5f38cc443 Add news68k 1999-12-10 06:04:01 +00:00
tron 41267f6ee4 "named.conf" doesn't belong here. 1999-07-19 12:05:37 +00:00
abs bb69dd0964 bind comes with a very helpful sample named.conf, so install it in
/usr/share/examples/named. I'm not overwhelmed about moving the file
into src/share/examples but there is prior art (amd).
1999-07-19 02:30:43 +00:00
kleink 2f2ccae89b Add definitions for all those m68k ports. 1999-04-19 21:47:49 +00:00
kleink 6954ab0ad7 Take a stab at making SVR4_MAKEDEV more flexible towards multiple architectures. 1999-04-19 14:46:27 +00:00
tv 5bf090dd33 Completely release my copyright; the changes are Minor. 1999-04-06 02:51:49 +00:00
tron 169ae11d11 Fix list of sup configuration examples which get installed. 1999-02-25 14:41:44 +00:00
lukem f1441161fc update norwegian sup server 1999-02-25 04:51:43 +00:00
abs aa8de7fce2 Add xsrc sup entries. Tested against sup.netbsd.org 1999-02-16 08:22:19 +00:00
hubertf b9242bda84 add option "delete" for pkgsrc 1999-02-14 04:08:53 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
minoura 88099aeaff Add example supfile for sup.jp.netbsd.org. 1999-02-01 16:02:38 +00:00
hubertf 420903b4c1 remove devices before (re)creating 1998-11-08 14:22:17 +00:00
lukem 9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
tron 6c1d0e6ef3 Use "/cd" not "/mnt" for CD ROM drive(s), install file "cd", no need to
strip "master" any more.
1998-06-21 16:43:31 +00:00
tron b5ddbdbe8d Add example how to automount a local CD ROM. 1998-06-17 07:46:29 +00:00
lukem b9b4c8e2c3 install ftpd examples 1998-06-06 01:32:06 +00:00
lukem b003c63dc4 example ftpd.conf 1998-06-06 01:28:33 +00:00
hubertf c81c51c2f8 add pkgsrc 1998-04-17 21:22:57 +00:00
hubertf 01ae794c95 Add a warning on how to use this file 1998-01-26 07:56:13 +00:00
lukem 31a864aac7 get hostbase correct 1997-12-30 22:33:27 +00:00
hubertf 44f30534fb Some enhancements and security fixes submitted by
Noriyuki Soda <soda@sra.co.jp>.
1997-12-12 11:52:55 +00:00
hubertf 2eaa5465bd Fix leftovers from last commit. 1997-12-12 11:50:33 +00:00
hubertf 7c572f19e6 Install amd examples too, closing PR 3219 by myself. 1997-12-11 13:08:47 +00:00
hubertf 7e7962b849 Import of some example files for amd 1997-12-11 13:02:07 +00:00
christos 94657851ef Add ptmx and pts[0-2] 1997-11-16 23:04:11 +00:00
lukem 61dc6d01ce fix hostbase [bin/4500] 1997-11-16 03:37:25 +00:00
thorpej 6473e0aedf Oops, forgot to add these before: example supfiles for NetBSD SUP mirrors. 1997-11-13 03:03:06 +00:00
thorpej bc5cb74a7b Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
1997-11-13 03:02:02 +00:00
thorpej 2e6852d279 A Makefile for the examples tree; currently builds "supfiles". 1997-11-13 02:33:12 +00:00
thorpej 6ca07951cf Add example supfiles for the known NetBSD SUP mirrors. 1997-11-13 02:31:36 +00:00