Commit Graph

48 Commits

Author SHA1 Message Date
Wildan M 2875e8f26e ipcd: Allow non contiguous shm allocation 2026-02-19 13:19:39 +07:00
Wildan M 99c3193764 ipcd: Allow data transfer before accept 2026-02-06 14:03:08 +07:00
Jeremy Soller 2d672b7cd9 Add anyhow to workspace 2026-01-29 10:47:45 -07:00
Ibuki Omatsu 334928f151 feat: Introduce userspace namespace manager and adapt all schemes. 2026-01-20 20:56:58 -07:00
Jeremy Soller f740b61774 Use workspace dependencies for many common crates 2026-01-20 10:12:08 -07:00
Wildan M 58cdb72051 uds: Fix accept blocking 2026-01-15 12:28:35 +07:00
Wildan M 05b83ae9c8 uds: merge two connect impl 2026-01-15 11:20:57 +07:00
Wildan M 5b06aa1439 Fixes for socketpair wouldblock 2026-01-15 10:44:51 +07:00
Wildan M 7efad0a989 uds: Unblock accept(), allow getpeername while connecting 2026-01-15 03:36:33 +07:00
Jeremy Soller 214ee1a532 Merge branch 'ipcd-setsockopt' into 'main'
ipcd: temporarily allow setsockopt SO_SNDBUF

See merge request redox-os/base!86
2026-01-08 18:44:20 -07:00
Jeremy Soller 52fe7cd9a1 Merge branch 'revert-6dddb01d' into 'main'
Revert "Use atomic counter in UDS to avoid race condition"

See merge request redox-os/base!81
2026-01-08 18:43:51 -07:00
Wildan M 2818310738 ipcd: temporarily allow setsockopt SO_SNDBUF 2026-01-08 05:58:29 +07:00
Wildan Mubarok 648753bb9b Revert "Use atomic counter in UDS to avoid race condition"
This reverts commit 6dddb01d63
2026-01-01 11:38:22 +00:00
Ibuki Omatsu 3681e1b74a refactor: Replace unlink and rmdir with unlinkat in ramfs. Update redox-scheme and redox-rt for bootstrap. 2025-12-17 18:46:05 -07:00
Anhad Singh 9496f6f486 fix(ipcd/uds/steam): perform checks before get_uid_gid_from_pid
Fix
https://gitlab.redox-os.org/redox-os/base/-/merge_requests/69#note_47265

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-16 22:14:40 +11:00
Anhad Singh 383bd436d8 fix(ipcd/uds/stream): handle zero-byte payload
* sendmsg(2) on `SOCK_STREAM` with zero-byte payload is a no-op even if
  ancillary data is present. Note that this does not apply to
  `SOCK_DGRAM`.
* Pass the `msg_flags` to `get_connected_pear` as non-blocking behaviour
  may be requested.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-16 21:19:53 +11:00
bjorn3 1ac570fe06 Couple of minor feature gate changes 2025-12-13 12:38:22 +01:00
bjorn3 6c39bea37a Only depend on redox-rt when compiling for redox
This fixes rust-analyzer when it is not configured to use redox as target.
2025-12-05 22:06:39 +01:00
bjorn3 4a182077c9 ipcd: Fix a couple of warnings 2025-12-05 20:52:46 +01:00
bjorn3 f06923b201 Standardize main function of all daemons 2025-12-04 11:44:29 +01:00
bjorn3 f1057b6750 daemon: Abort on errors
All users did this anyway. And handling it inside the daemon crate
allows avoiding a panic of the parent process when the child process
panicked.
2025-12-03 21:55:47 +01:00
bjorn3 54d81e7423 Merge redox-daemon into this repo 2025-12-03 21:07:13 +01:00
bjorn3 0c2341d53e Remove outdated Cargo.lock files 2025-12-03 21:00:13 +01:00
Jeremy Soller 1145e908f1 ipcd: return sane value for SO_SNDBUF 2025-11-17 17:18:02 -07:00
Jeremy Soller 9704a4501e ipcd: refactor fevent handling 2025-11-16 09:02:27 -07:00
Jeremy Soller 16ac15d5eb ipcd: remove unnecessary debug print 2025-11-14 18:25:36 -07:00
Jeremy Soller eb2da68f88 Handle MSG_DONTWAIT 2025-11-13 10:19:13 -07:00
Jeremy Soller 594748c1e1 ipcd: make require_connected_connection compatible with O_NONBLOCK 2025-11-10 16:41:55 -07:00
Jeremy Soller 7d2d5e9f60 Go back to redox-os/relibc for redox-rt 2025-11-10 07:36:01 -07:00
Ibuki Omatsu 1033c6f430 feat: Add getpeername support for uds schemes. 2025-11-10 07:34:54 -07:00
Jeremy Soller 092d4001e1 Support SO_PEERCRED in unix streams 2025-11-08 08:39:02 -07:00
Jeremy Soller 68b483b0c7 Block require_connected_connection if already connecting 2025-11-08 07:45:07 -07:00
Jeremy Soller 3019f8f12a Fix return value for nonblock accept and recvfd 2025-11-07 20:11:13 -07:00
Jeremy Soller f311cdd813 Allow SCM_CREDENTIALS 2025-11-07 15:46:41 -07:00
Jeremy Soller 54105cecf8 Implement fstat for shm 2025-11-07 13:26:45 -07:00
Jeremy Soller 9ff116f4bb Merge branch 'uds-race-cond' into 'main'
Use atomic counter in UDS to avoid race condition

See merge request redox-os/base!32
2025-10-21 10:30:56 -06:00
Wildan M aab6157871 Further fixes of shm read/write handling 2025-10-21 23:18:40 +07:00
Wildan Mubarok 6dddb01d63 Use atomic counter in UDS to avoid race condition 2025-10-21 15:20:50 +00:00
Wildan Mubarok 97cefd26a1 Fixes for shm handling 2025-10-17 15:02:45 -06:00
Jeremy Soller bed0b52961 ipcd/uds: implement fevent and misc fixes 2025-09-17 14:43:53 -06:00
Ibuki Omatsu 3cad0e8a33 feat: Implement bulk fd passing 2025-07-30 18:49:37 -06:00
Ibuki Omatsu 9a8af7c993 feat: Reimplement bind and connect operation using token and switch GetProcCredentials to capability-based approach. 2025-07-21 07:56:03 -06:00
Ibuki Omatsu 1004be449d fix: Fix build errors related to uds scheme 2025-07-19 12:13:15 -06:00
Ibuki Omatsu 9189c4c6dc feat: Implement uds_dgram and uds_stream schemes. 2025-07-18 21:58:53 -06:00
Ibuki Omatsu 8a3bb40a1f feat: Update the redox-scheme version to 0.6 in ipcd. 2025-07-10 21:01:40 -06:00
Ribbon 632459e5be Add a README and simplify the daemon READMEs 2025-05-15 23:29:52 -03:00
bjorn3 15bb765a78 Remove redundant license files 2025-02-21 20:13:23 +01:00
bjorn3 b0586e9ead Add 'ipcd/' from commit 'e6f672bd48f9ac65a194f804bd0ed64c307f7b67'
git-subtree-dir: ipcd
git-subtree-mainline: 999da13e76
git-subtree-split: e6f672bd48
2025-02-21 20:07:22 +01:00