<feed xmlns='http://www.w3.org/2005/Atom'>
<title>teythoon/hurd.git/libtrivfs, branch master</title>
<subtitle>Personal Hurd development repository</subtitle>
<id>https://darnassus.sceen.net/cgit/teythoon/hurd.git/atom?h=master</id>
<link rel='self' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/'/>
<updated>2016-10-30T20:22:53Z</updated>
<entry>
<title>Mark library stubs as weak</title>
<updated>2016-10-30T20:22:53Z</updated>
<author>
<name>Samuel Thibault</name>
<email>samuel.thibault@ens-lyon.org</email>
</author>
<published>2016-10-30T20:15:47Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=267995f0c2aea8030c6126f62dc41ff63d80caa7'/>
<id>urn:sha1:267995f0c2aea8030c6126f62dc41ff63d80caa7</id>
<content type='text'>
So that static linking of e.g. console.static can work.

* libdiskfs/io-stubs.c (diskfs_S_io_readsleep, diskfs_S_io_eofnotify,
diskfs_S_io_postnotify, diskfs_S_io_readnotify): Mark weak.
* libnetfs/fsstubs.c (netfs_S_file_notice_changes, netfs_S_file_getfh,
netfs_S_ifsock_getsockaddr): Likewise.
* libnetfs/fsysstubs.c (netfs_S_fsys_getfile: netfs_S_fsys_getpriv,
netfs_S_fsys_init, netfs_S_fsys_forward, netfs_S_fsys_startup):
Likewise.
* libpager/stubs.c (_pager_S_memory_object_copy,
_pager_S_memory_object_data_write,
_pager_S_memory_object_supply_completed): Likewise.
* libtrivfs/fsys-stubs.c (trivfs_S_fsys_startup, trivfs_S_fsys_getpriv,
trivfs_S_fsys_init, trivfs_S_fsys_getfile): Likewise.
* libtrivfs/io-stubs.c (trivfs_S_io_map_cntl, trivfs_S_io_get_conch,
trivfs_S_io_release_conch, trivfs_S_io_eofnotify, trivfs_S_io_prenotify,
trivfs_S_io_postnotify, trivfs_S_io_readsleep, trivfs_S_io_sigio,
trivfs_S_io_readnotify): Likewise.
</content>
</entry>
<entry>
<title>Fix privileged operations on trivfs-translated nodes</title>
<updated>2016-05-03T15:18:30Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-04-29T21:36:47Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=45b829f4dcb28a98af7285dc57bfaf621b0bbf21'/>
<id>urn:sha1:45b829f4dcb28a98af7285dc57bfaf621b0bbf21</id>
<content type='text'>
Amends d18ea50e.

* libtrivfs/fsys-getroot.c: When the user is privileged, make a
verbatim copy of the real node instead of making an auth-restricted
copy.
</content>
</entry>
<entry>
<title>Fix root operations on trivfs-translated nodes</title>
<updated>2016-04-29T19:10:11Z</updated>
<author>
<name>Samuel Thibault</name>
<email>samuel.thibault@ens-lyon.org</email>
</author>
<published>2016-04-29T19:03:08Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=d18ea50ec00210680b80359cb182a0175374d5e1'/>
<id>urn:sha1:d18ea50ec00210680b80359cb182a0175374d5e1</id>
<content type='text'>
* libtrivfs/fsys-getroot.c: When `uids` contain 0, make a verbatim copy of
the real node instead of making an auth-restricted copy.
</content>
</entry>
<entry>
<title>libtrivfs: fix notion of privileged user</title>
<updated>2016-04-26T12:49:46Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-04-24T23:38:45Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=94ce9fa4c443ec9a0e6ecc92cb6b07534c321c75'/>
<id>urn:sha1:94ce9fa4c443ec9a0e6ecc92cb6b07534c321c75</id>
<content type='text'>
Set 'is_root' if the node has been opened by the root user (this was
the old behavior) or if it has been opened by the user the translator
is executing under.

This fixes the irritating bug that an unprivileged user cannot control
her own trivfs-based translators.  It does not change how privileged
trivfs translators work.

* libtrivfs/io-reauthenticate.c (trivfs_S_io_reauthenticate): Use the
new function to compute 'isroot'.
* libtrivfs/io-restrict-auth.c (trivfs_S_io_restrict_auth): Likewise.
* libtrivfs/open.c (trivfs_open): Likewise.
* libtrivfs/priv.h (_is_privileged): New function.
* libtrivfs/trivfs.h (struct peropen): Clarify what 'isroot' means.
</content>
</entry>
<entry>
<title>libtrivfs: fix error handling</title>
<updated>2016-04-26T12:49:46Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-04-24T22:48:56Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=d67a86c9690c2a9984ca6e9f3c376956495897f4'/>
<id>urn:sha1:d67a86c9690c2a9984ca6e9f3c376956495897f4</id>
<content type='text'>
* libtrivfs/times.c (trivfs_set_{a,m}time): Fix error handling.
</content>
</entry>
<entry>
<title>Define IO_OUTTRAN so that term_on_pty returns a mach_port_t</title>
<updated>2015-12-31T15:23:16Z</updated>
<author>
<name>Flavio Cruz</name>
<email>flaviocruz@gmail.com</email>
</author>
<published>2015-12-31T15:12:59Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=f2524f5bfed878ae229eea3484dad2e0e9369b3a'/>
<id>urn:sha1:f2524f5bfed878ae229eea3484dad2e0e9369b3a</id>
<content type='text'>
* libtrivfs/mig-decls.h: Implement trivfs_convert_to_port.
* term/mig-mutate.h: Define IO_OUTTRAN.
</content>
</entry>
<entry>
<title>libtrivfs: remove deprecated static class vectors</title>
<updated>2015-11-03T21:46:17Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2015-11-01T11:34:36Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=7dd0f755f4ac29e6c10085c16e18dd97d92ae5e7'/>
<id>urn:sha1:7dd0f755f4ac29e6c10085c16e18dd97d92ae5e7</id>
<content type='text'>
This API has been deprecated in Hurd 0.7.

* doc/hurd.texi (trivfs_protid_portclasses,
trivfs_protid_nportclasses, trivfs_cntl_portclasses,
trivfs_cntl_nportclasses): Remove.
* libtrivfs/trivfs.h: Likewise.
* libtrivfs/mig-decls.h: Adapt accordingly.
* libtrivfs/cntl-classes.c: Remove unused file.
* libtrivfs/protid-classes.c: Likewise.
* libtrivfs/Makefile (OTHERSRCS): Drop the two files.
</content>
</entry>
<entry>
<title>Drop duplicate port deallocation</title>
<updated>2015-10-11T20:02:41Z</updated>
<author>
<name>Samuel Thibault</name>
<email>samuel.thibault@ens-lyon.org</email>
</author>
<published>2015-10-11T20:02:41Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=bd7e7ae44c78bcfe623dec8636375685c8c30be3'/>
<id>urn:sha1:bd7e7ae44c78bcfe623dec8636375685c8c30be3</id>
<content type='text'>
Follow-up dbfa8a3

* libnetfs/io-reauthenticate.c (netfs_S_io_reauthenticate): Do not
deallocate parameter port `rend_port' when an error will be returned.
* libtrivfs/io-reauthenticate.c (trivfs_S_io_reauthenticate): Do not
deallocate parameter port `rend_port' when an error will be returned.
</content>
</entry>
<entry>
<title>libtrivfs: deprecate old api</title>
<updated>2015-09-27T21:39:35Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2015-09-27T21:37:44Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=379feba88080eb8cd731bbd64b98cc0bbf10931a'/>
<id>urn:sha1:379feba88080eb8cd731bbd64b98cc0bbf10931a</id>
<content type='text'>
* libtrivfs/trivfs.h (trivfs_protid_portclasses): Deprecate, and
schedule for removal in Hurd 0.8.
(trivfs_protid_nportclasses): Likewise.
(trivfs_cntl_portclasses): Likewise.
(trivfs_cntl_nportclasses): Likewise.
</content>
</entry>
<entry>
<title>libtrivfs: optimize the object lookup code</title>
<updated>2015-09-27T21:39:35Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2015-09-27T16:55:39Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=9fe7adc2907afdd2039a67d27328ba82a884561e'/>
<id>urn:sha1:9fe7adc2907afdd2039a67d27328ba82a884561e</id>
<content type='text'>
* libtrivfs/mig-decls.h: Remove the specialized cases, they really
blow up these functions that are supposed to be inlined.  Also, look
into the dynamically allocated vectors first, because this is the
preferred way of using libtrivfs since 1997.
</content>
</entry>
</feed>
