@ai-ecoverse/wasix-sysroot 2025.9.30-24 → 2025.9.30-26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -2
- package/package.json +2 -2
- package/sysroot/include/__header_fcntl.h +1 -1
- package/sysroot/include/unistd.h +1 -1
- package/sysroot/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-eh/include/__header_fcntl.h +1 -1
- package/sysroot-eh/include/unistd.h +1 -1
- package/sysroot-eh/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-eh/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-eh/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-eh/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-ehpic/include/__header_fcntl.h +1 -1
- package/sysroot-ehpic/include/unistd.h +1 -1
- package/sysroot-ehpic/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-ehpic/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-ehpic/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-ehpic/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-exnref-eh/include/__header_fcntl.h +1 -1
- package/sysroot-exnref-eh/include/unistd.h +1 -1
- package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-exnref-eh/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-exnref-ehpic/include/__header_fcntl.h +1 -1
- package/sysroot-exnref-ehpic/include/unistd.h +1 -1
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/libc.a +0 -0
package/README.md
CHANGED
|
@@ -41,13 +41,39 @@ Since 2025.9.30-18:
|
|
|
41
41
|
`sleep` early with the seconds left.
|
|
42
42
|
- `raise()` and `pthread_kill(pthread_self())` reach the handler.
|
|
43
43
|
|
|
44
|
+
Since 2025.9.30-26 an empty path is ENOENT, as POSIX and Linux have it:
|
|
45
|
+
`open("")`, `stat("")`, `access("")`, `mkdir("")`, `chmod("")`, `symlink("", x)`
|
|
46
|
+
and every other call that takes a path used to act on the current directory
|
|
47
|
+
(libc made `""` relative to the cwd). With slicc-kernel ≥ 1.71.1 the
|
|
48
|
+
`*at(dirfd, "")` forms are ENOENT too (slicc-kernel#404).
|
|
49
|
+
`fstatat(fd, "", st, AT_EMPTY_PATH)` (0x1000) is `fstat(fd)`.
|
|
50
|
+
|
|
51
|
+
Since 2025.9.30-25 `access`, `faccessat`, `eaccess` and `euidaccess` ask
|
|
52
|
+
slicc-kernel (`slicc_fs.path_access`, slicc-kernel >= 1.63.0, K3(b)), which
|
|
53
|
+
checks the file's owner, group and mode against the real ids (`access`) or the
|
|
54
|
+
effective ids (`AT_EACCESS`, `eaccess`), as Linux does, including search
|
|
55
|
+
permission on every directory of the path and root needing an x bit for
|
|
56
|
+
`X_OK`. With users `'off'` or `'report'` it checks that the path exists, and
|
|
57
|
+
`X_OK` on a device is EACCES whenever owners are on (`'report'` too).
|
|
58
|
+
On an older kernel the -24 check stays (the path exists; WASI rights).
|
|
59
|
+
- `AT_EACCESS` is now 0x200 (it was 0, so `faccessat(…, AT_EACCESS)` was
|
|
60
|
+
`access`); `faccessat` also takes `AT_SYMLINK_NOFOLLOW`, which was EINVAL.
|
|
61
|
+
- `eaccess`/`euidaccess` exist (declared with `_GNU_SOURCE`, as in glibc).
|
|
62
|
+
- `linkat` refuses flags other than `AT_SYMLINK_FOLLOW` (WASIX's 0x2) with
|
|
63
|
+
EINVAL, as Linux does.
|
|
64
|
+
- `open` already asks only for the rights its mode needs (`O_RDONLY`: no
|
|
65
|
+
write rights), so under users `'enforce'` a read-only file opens for reading;
|
|
66
|
+
slicc-kernel counts a request for write rights as a write.
|
|
67
|
+
|
|
44
68
|
Since 2025.9.30-24 files have real owners when slicc-kernel keeps them
|
|
45
69
|
(`createKernel({ users: 'report' | 'enforce' })`, slicc-kernel K3):
|
|
46
70
|
- `chown`/`lchown`/`fchown`/`fchownat` go to the kernel (`slicc_fs.path_chown`/
|
|
47
71
|
`fd_chown`), which applies Linux's rules: root may set anything, an owner may
|
|
48
72
|
only change the group to one of its own, -1 keeps an id, EPERM otherwise;
|
|
49
|
-
- `stat`/`lstat`/`fstat` report the stored owner
|
|
50
|
-
`
|
|
73
|
+
- `stat`/`lstat`/`fstat` report the stored owner instead of the caller's own
|
|
74
|
+
ids: one call, `slicc_fs.path_filestat_owner`/`fd_filestat_owner` (the WASI
|
|
75
|
+
filestat and the owner together), or on a kernel without those the WASI
|
|
76
|
+
filestat plus `slicc_fs.path_owner`/`fd_owner`;
|
|
51
77
|
- with users `'off'` the chown calls still check the path or fd (ENOENT,
|
|
52
78
|
EBADF) but change nothing, and `stat` shows the caller's ids, as before;
|
|
53
79
|
- on a kernel without these imports everything stays as in -23: chown to
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/wasix-sysroot",
|
|
3
|
-
"version": "2025.9.30-
|
|
4
|
-
"description": "WASIX sysroots: st_uid/st_gid and
|
|
3
|
+
"version": "2025.9.30-26",
|
|
4
|
+
"description": "WASIX sysroots: st_uid/st_gid, chown and access() through slicc-kernel file owners (getuid()/getgid() on older kernels), file modes via slicc_fs, F_SETFD CLOEXEC fix, select exceptfds, physical chdir, POSIX TZ, socketpair flags, sigaction_set, alarm/setitimer/getitimer, EINTR sleeps, raise/pthread_kill, process credentials from slicc-kernel (no fixed uid 1000), per-fd termios/winsize from slicc-kernel (Linux and WASIX ioctl numbers), fork in the PIC variants, wasip1, clang24 exnref",
|
|
5
5
|
"license": "Apache-2.0 WITH LLVM-exception",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/sysroot/include/unistd.h
CHANGED
|
@@ -276,9 +276,9 @@ char *get_current_dir_name(void);
|
|
|
276
276
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no syncfs */
|
|
277
277
|
int syncfs(int);
|
|
278
278
|
#endif
|
|
279
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no eaccess */
|
|
280
279
|
int euidaccess(const char *, int);
|
|
281
280
|
int eaccess(const char *, int);
|
|
281
|
+
#ifdef __wasilibc_unmodified_upstream /* WASI has no copy_file_range, gettid */
|
|
282
282
|
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
|
283
283
|
pid_t gettid(void);
|
|
284
284
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -276,9 +276,9 @@ char *get_current_dir_name(void);
|
|
|
276
276
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no syncfs */
|
|
277
277
|
int syncfs(int);
|
|
278
278
|
#endif
|
|
279
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no eaccess */
|
|
280
279
|
int euidaccess(const char *, int);
|
|
281
280
|
int eaccess(const char *, int);
|
|
281
|
+
#ifdef __wasilibc_unmodified_upstream /* WASI has no copy_file_range, gettid */
|
|
282
282
|
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
|
283
283
|
pid_t gettid(void);
|
|
284
284
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -276,9 +276,9 @@ char *get_current_dir_name(void);
|
|
|
276
276
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no syncfs */
|
|
277
277
|
int syncfs(int);
|
|
278
278
|
#endif
|
|
279
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no eaccess */
|
|
280
279
|
int euidaccess(const char *, int);
|
|
281
280
|
int eaccess(const char *, int);
|
|
281
|
+
#ifdef __wasilibc_unmodified_upstream /* WASI has no copy_file_range, gettid */
|
|
282
282
|
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
|
283
283
|
pid_t gettid(void);
|
|
284
284
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -276,9 +276,9 @@ char *get_current_dir_name(void);
|
|
|
276
276
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no syncfs */
|
|
277
277
|
int syncfs(int);
|
|
278
278
|
#endif
|
|
279
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no eaccess */
|
|
280
279
|
int euidaccess(const char *, int);
|
|
281
280
|
int eaccess(const char *, int);
|
|
281
|
+
#ifdef __wasilibc_unmodified_upstream /* WASI has no copy_file_range, gettid */
|
|
282
282
|
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
|
283
283
|
pid_t gettid(void);
|
|
284
284
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -276,9 +276,9 @@ char *get_current_dir_name(void);
|
|
|
276
276
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no syncfs */
|
|
277
277
|
int syncfs(int);
|
|
278
278
|
#endif
|
|
279
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no eaccess */
|
|
280
279
|
int euidaccess(const char *, int);
|
|
281
280
|
int eaccess(const char *, int);
|
|
281
|
+
#ifdef __wasilibc_unmodified_upstream /* WASI has no copy_file_range, gettid */
|
|
282
282
|
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
|
283
283
|
pid_t gettid(void);
|
|
284
284
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|