Commit Graph

14 Commits

Author SHA1 Message Date
christos 9292cfb210 close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
  fopen(db, "re")
2011-10-15 23:00:01 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
uebayasi 2b37ebddcf KNF; no variable name in function prototype. 2007-11-23 12:39:15 +00:00
dsl b0b7248d92 Change all the syscall C 'glue' functions (most of which just add in an
extra argument to ensure that 'off_t' parameters are even numbered
parameters for stack alignment reasons on 32 bit systems) to use a normal
'syscall' wrapper for __foo instead of using __syscall(SYS_foo, ... ).
This saves all the faffing needed to get a 32bit return value on sparc.
Auto-generate the extra syscall wrappers.
Move swapon.c into the correct list (swapon() uses swapctl()).
This probably means there are very few users of syscall() and __syscall() left.
2007-11-22 21:11:30 +00:00
kardel 403d759108 - simplify code
- remove any 'permission checks' via geteuid() - with upcoming
  security models these might not match the model any more
- this also fixes a bug where ntp_adjtime() was denied (EPERM)
  even though only a legit read status was performed
2006-10-07 20:02:01 +00:00
jnemeth 335cb46309 PR/34218 -- Matt Fleming -- date hangs when root trys to set time
backwards while at securelevel >= 2
2006-08-17 09:59:55 +00:00
christos f7f0b66150 Do not use SCARG() in userland. Eliminates need for <sys/systm.h>. 2006-03-09 23:44:43 +00:00
lukem 88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
kleink 681b62c2ce POSIX-2001: Add restrict keywords to gettimeofday(2) and setitimer(2);
further deprecate struct timezone usage by changing `tzp' argument to
gettimeofday() to void *; align utimes(2) declaration by changing `times`
argument from struct timeval * to struct timeval[2].  From Murray
Armfield in PR standards/25331.

In due curse, reflect these changes in futimes(2), lutimes(2), and
settimeofday(2).
2004-04-27 01:12:44 +00:00
cb 9b28f9c625 Mark __clockctl_fd close-on-exec to avoid unintentionally leaking
time setting privileges across an exec.
2003-07-16 19:42:11 +00:00
thorpej 3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
manu 8429e82f30 - Changed clocktl interface to use syscallargs structures
- Implemented keep-state so that we don't have to open /dev/clockctl each time.
2001-12-09 16:11:45 +00:00
thorpej a46d6c9e4f Need string.h for memcpy() prototype. 2001-09-17 23:52:14 +00:00
manu 54c0ce6119 Added support to use the clockctl driver if present for adjtime(),
clock_settime(), ntp_adjtime() and settimeofday(). The super-user still
always use the plain system call.
Approved by Christos
2001-09-16 07:41:56 +00:00