aboutsummaryrefslogtreecommitdiff
path: root/pflocal/pf.c
Commit message (Collapse)AuthorAgeFilesLines
* Make RPC input array parameters constSamuel Thibault2022-01-161-1/+1
| | | | | This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side")
* pflocal: Record socket creator so io_stat can return itSamuel Thibault2020-11-111-1/+7
| | | | | | | | | | | * pflocal/sock.h (struct sock): Add uid and gid fields. * pflocal/sock.c (sock_create): Set uid and gid to 0. * pflocal/mig-mutate.h (SOCKET_IMPORTS): Import ../libtrivfs/mig-decls.h. (PF_INTRAN, PF_INTRAN_PAYLOAD, PF_DESTRUCTOR): New macros. * pflocal/pf.c: Include hurd/trivfs.h. (S_socket_create): Update parameters. Set sock's uid and gid fields according to pf->user. * pflocal/io.c (S_io_stat): Set st_uid and st_gid according to pf.
* Use the data_t type defined in hurd_types.h.Flavio Cruz2019-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * boot/boot.c: Replace char* with data_t. * console-client/trans.c: Likewise. * exec/exec.c: Likewise. * ext2fs/storeinfo.c: Likewise. * fatfs/inode.c: Likewise. * fatfs/main.c: Likewise. * isofs/inode.c: Likewise. * libdiskfs/boot-start.c: Likewise. * libdiskfs/dir-readdir.c: Likewise. * libdiskfs/file-exec.c: Likewise. * libdiskfs/file-get-fs-opts.c: Likewise. * libdiskfs/file-get-trans.c: Likewise. * libdiskfs/file-getfh.c: Likewise. * libdiskfs/file-set-trans.c: Likewise. * libdiskfs/fsys-forward.c: Likewise. * libdiskfs/fsys-getfile.c: Likewise. * libdiskfs/fsys-options.c: Likewise. * libdiskfs/io-read.c: Likewise. * libdiskfs/io-write.c: Likewise. * libnetfs/dir-readdir.c: Likewise. * libnetfs/file-exec.c: Likewise. * libnetfs/file-get-fs-options.c: Likewise. * libnetfs/file-get-storage-info.c: Likewise. * libnetfs/file-get-translator.c: Likewise. * libnetfs/file-set-translator.c: Likewise. * libnetfs/fsstubs.c: Likewise. * libnetfs/fsys-get-options.c: Likewise. * libnetfs/fsys-set-options.c: Likewise. * libnetfs/fsysstubs.c: Likewise. * libnetfs/io-read.c: Likewise. * libnetfs/io-write.c: Likewise. * libtrivfs/dir-readdir.c: Likewise. * libtrivfs/file-get-fs-options.c: Likewise. * libtrivfs/file-get-storage-info.c: Likewise. * libtrivfs/file-get-trans.c: Likewise. * libtrivfs/file-getfh.c: Likewise. * libtrivfs/file-set-trans.c: Likewise. * libtrivfs/fsys-forward.c: Likewise. * libtrivfs/fsys-get-options.c: Likewise. * libtrivfs/fsys-set-options.c: Likewise. * libtrivfs/fsys-stubs.c: Likewise. * libtrivfs/io-read.c: Likewise. * libtrivfs/io-write.c: Likewise. * pfinet/io-ops.c: Likewise. * pfinet/pfinet-ops.c: Likewise. * pfinet/socket-ops.c: Likewise. * pfinet/tunnel.c: Likewise. * pflocal/io.c: Likewise. * pflocal/pf.c: Likewise. * pflocal/socket.c: Likewise. * proc/info.c: Likewise. * startup/startup.c: Likewise. * storeio/io.c: Likewise. * term/users.c: Likewise. * tmpfs/node.c: Likewise. * trans/crash.c: Likewise. * trans/fakeroot.c: Likewise. * trans/fifo.c: Likewise. * trans/firmlink.c: Likewise. * trans/hello-mt.c: Likewise. * trans/hello.c: Likewise. * trans/mtab.c: Likewise. * trans/new-fifo.c: Likewise. * trans/null.c: Likewise. * trans/proxy-defpager.c: Likewise. * trans/streamio.c: Likewise.
* Fix error values on socket creationPino Toscano2011-12-061-1/+1
| | | | | | | | | On socket creation, return the correct errno values, EPROTOTYPE and EPROTONOSUPPORT, for invalid socket types and protocols. * pfinet/socket-ops.c (S_socket_create): Correctly return EPROTOTYPE and EPROTONOSUPPORT. * pflocal/pf.c (S_socket_create): Correctly return EPROTOTYPE.
* fix common misspellingsJonathan Neuschäfer2011-08-201-1/+1
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* fix copyright yearsSamuel Thibault2008-07-221-1/+1
|
* 2008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2008-07-221-0/+1
| | | | | | * pf.c (S_socket_fabricate_address): Drop one reference from addr since we only take the send right. * socket.c (S_socket_name): Likewise.
* * pf.c (S_socket_create): Only accept S_IFCHR, S_IFSOCK andMark Kettenis2000-08-091-6/+13
| | | | S_IFIFO as `magic' protocols.
* Add `magic' protocols to specify the file type of a sockets. ThisMark Kettenis2000-08-021-4/+13
| | | | | | | | | | | | | allows implementation of POSIX pipes by using a S_IFSOCK protocol. * sock.h: Include <sys/types.h>. (struct sock): Add new member `mode'. (sock_create): Add new parameter `mode'. * sock.c (sock_create): Initialize `mode' member of struct sock, with new parameter. * pf.c (S_socket_create): Pass file type/mode to sock_create based on PROTOCOL. * io.c (S_io_stat): Use new member of `struct sock' to set ST->st_mode.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-1/+1
| | | | * pf.c (S_socket_whatis_address): Use mmap instead of vm_allocate.
* 1999-03-01 Mark Kettenis <kettenis@gnu.org>Roland McGrath1999-03-021-3/+21
| | | | | * pf.c (S_socket_whatis_address): Implement. Since we cannot tell what our adress is, return an empty string as the file name.
* (S_socket_create_address): Removing BINDING argument.Miles Bader1995-11-061-4/+2
|
* entered into RCSMiles Bader1995-07-291-1/+1
|
* Formerly pf.c.~9~Miles Bader1995-07-261-1/+2
|
* Formerly pf.c.~8~Miles Bader1995-07-221-3/+7
|
* Formerly pf.c.~7~Miles Bader1995-07-171-9/+13
|
* Formerly pf.c.~6~Miles Bader1995-07-161-0/+9
|
* Formerly pf.c.~5~Miles Bader1995-07-161-1/+2
|
* Formerly pf.c.~4~Miles Bader1995-07-031-6/+41
|
* Formerly pf.c.~3~Miles Bader1995-07-021-5/+8
|
* Formerly pf.c.~2~Miles Bader1995-07-021-12/+18
|
* Initial revisionMiles Bader1995-07-011-0/+44