Commit Graph

157 Commits

Author SHA1 Message Date
pooka
a67e4ce37f * do mount as a forward operation instead of a callback
* process -o args for mount
2007-01-06 18:25:19 +00:00
elad
a75d82b0bc We no longer have 'enum kauth_machdep_req'. 2007-01-05 13:23:22 +00:00
elad
a13160f423 Make mount(2) and unmount(2) use kauth(9) for security policy.
Okay yamt@.
2007-01-02 10:47:28 +00:00
pooka
d584a8d23a SUSv3 says: should the implementation not support directory unlinking,
unlink shall fail with EPERM and the errno of the failure shall be EPERM
2007-01-01 21:32:12 +00:00
pooka
6a42c9c838 apply wide-angle rotollation beam to match libpuffs changes 2006-12-29 15:37:06 +00:00
pooka
fb7890b666 ssshfs is obsoleted by mount_psshfs 2006-12-29 15:36:18 +00:00
elad
504c71d9fe Make machdep scope architecture-agnostic by removing all arch-specific
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
2006-12-26 10:43:43 +00:00
elad
3d11477c94 Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.

Update documentation and example secmodel code.
2006-12-22 11:13:21 +00:00
elad
238ad51d2d - moves 'nice' access semantics to secmodel code,
- makes sysctl_proc_find() just lookup the process,
- use KAUTH_PROCESS_CANSEE requests to determine if the caller is
  allowed to view the target process' corename, stop flags, and
  rlimits,
- use explicit kauth(9) calls with KAUTH_PROCESS_CORENAME,
  KAUTH_REQ_PROCESS_RESOURCE_NICE, KAUTH_REQ_PROCESS_RESOURCE_RLIMIT,
  and KAUTH_PROCESS_STOPFLAG when modifying the aforementioned.
- sync man-page and example skeleton secmodel with reality.

okay yamt@

this is a pullup candidate.
2006-12-14 11:45:08 +00:00
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