* autoload.cc (NtSetSecurityObject): Add.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only request READ_CONTROL rights when opening the file. * ntdll.h (NtSetSecurityObject): Add declaration. * security.cc (write_sd): Call NtSetSecurityObject instead of BackupWrite. (get_nt_object_security): Don't free security descriptor here. * syscalls.cc (ttyname): Use buffer of length TTY_NAME_MAX + 1. * sysconf.cc (sysconf): Handle _SC_TTY_NAME_MAX request. * include/limits.h: Define TTY_NAME_MAX and _POSIX_TTY_NAME_MAX.
This commit is contained in:
@ -151,6 +151,10 @@ details. */
|
||||
#undef TIMER_MAX
|
||||
#define TIMER_MAX 32
|
||||
|
||||
/* Maximum number of characters in a tty name. */
|
||||
#undef TTY_NAME_MAX
|
||||
#define TTY_NAME_MAX 12
|
||||
|
||||
/* POSIX values */
|
||||
/* These should never vary from one system type to another */
|
||||
/* They represent the minimum values that POSIX systems must support.
|
||||
@ -170,6 +174,7 @@ details. */
|
||||
#define _POSIX_TZNAME_MAX 3
|
||||
#define _POSIX_RTSIG_MAX 8
|
||||
#define _POSIX_TIMER_MAX 32
|
||||
#define _POSIX_TTY_NAME_MAX 9
|
||||
|
||||
#define RTSIG_MAX _POSIX_RTSIG_MAX
|
||||
|
||||
|
Reference in New Issue
Block a user