Page MenuHomeFreeBSD
Feed Advanced Search

Dec 16 2024

olce closed D47608: MAC/do: Sysctl knobs/jail parameters under MAC's common nodes.
Dec 16 2024, 2:47 PM
olce closed D47606: MAC/do: Re-order jail methods more logically, rename.
Dec 16 2024, 2:47 PM
olce committed rG83fcbbff6b01: MAC/do: Use prison_lock()/prison_unlock() (authored by olce).
MAC/do: Use prison_lock()/prison_unlock()
Dec 16 2024, 2:47 PM
olce committed rG8ce577060498: MAC/do: Rename internal mac_do_rule_find() => find_rules() (authored by olce).
MAC/do: Rename internal mac_do_rule_find() => find_rules()
Dec 16 2024, 2:47 PM
olce closed D47604: MAC/do: Move destroy() to a better place.
Dec 16 2024, 2:47 PM
olce closed D47603: MAC/do: Remove the 'prison0' special cases in the common paths.
Dec 16 2024, 2:46 PM
olce committed rG02ed945ccec4: MAC/do: Rename private struct 'mac_do_rule' => 'rules' (authored by olce).
MAC/do: Rename private struct 'mac_do_rule' => 'rules'
Dec 16 2024, 2:46 PM
olce closed D47602: MAC/do: Enable changing 'security.mac.do.rules' from a jail.
Dec 16 2024, 2:46 PM
olce committed rGccae2774897c: MAC/do: Rename rule_is_valid() => rule_applies() (authored by olce).
MAC/do: Rename rule_is_valid() => rule_applies()
Dec 16 2024, 2:46 PM
olce committed rGf0600c41e754: MAC/do: Sort header inclusions (authored by olce).
MAC/do: Sort header inclusions
Dec 16 2024, 2:46 PM
olce committed rG2200a3ec711b: MAC/do: parse_rules(): Copy input string on its own (authored by olce).
MAC/do: parse_rules(): Copy input string on its own
Dec 16 2024, 2:46 PM
olce closed D47599: MAC/do: Remove PR_METHOD_REMOVE method.
Dec 16 2024, 2:46 PM
olce closed D47598: MAC/do: Allocate/deallocate rules as a whole.
Dec 16 2024, 2:46 PM
olce committed rG8cdb0458e12e: syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort (authored by olce).
syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort
Dec 16 2024, 2:46 PM
olce closed D47597: MAC/do: Factor out setting/destroying rule structures.
Dec 16 2024, 2:46 PM
olce committed rGd2be7ed63aff: cred: proc_set_cred(), proc_unset_cred(): Update user's process count (authored by olce).
cred: proc_set_cred(), proc_unset_cred(): Update user's process count
Dec 16 2024, 2:46 PM
olce committed rG07c9edac7bcd: cred: proc_set_cred(): Remove obsolete comments (authored by olce).
cred: proc_set_cred(): Remove obsolete comments
Dec 16 2024, 2:46 PM
olce closed D47596: MAC/do: find_rules(): Clarify the contract.
Dec 16 2024, 2:46 PM
olce committed rG0b011b5cddb5: mountd(8): parsecred(): Remove comment on non-existent bug (authored by olce).
mountd(8): parsecred(): Remove comment on non-existent bug
Dec 16 2024, 2:46 PM
olce closed D47595: MAC/do: Use prison_lock()/prison_unlock().
Dec 16 2024, 2:46 PM
olce committed rG84337218786b: nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials (authored by olce).
nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials
Dec 16 2024, 2:46 PM
olce committed rG2ef608de9062: exports(5): -maproot, -mapall: Explain the fallback on no group (authored by olce).
exports(5): -maproot, -mapall: Explain the fallback on no group
Dec 16 2024, 2:46 PM
olce closed D47593: MAC/do: Rename private struct 'mac_do_rule' => 'rules'.
Dec 16 2024, 2:46 PM
olce committed rG7f7f3b6cafac: mountd(8): parsecred(): Groups limit: NGROUPS_MAX => NGROUPS_MAX + 1 (authored by olce).
mountd(8): parsecred(): Groups limit: NGROUPS_MAX => NGROUPS_MAX + 1
Dec 16 2024, 2:46 PM
olce closed D47592: MAC/do: Rename rule_is_valid() => rule_applies().
Dec 16 2024, 2:46 PM
olce closed D47591: MAC/do: parse_rules(): Copy input string on its own.
Dec 16 2024, 2:46 PM
olce committed rGbdc259ef382f: mountd(8): parsecred(): Fallback to "nogroup" or GID_NOGROUP (authored by olce).
mountd(8): parsecred(): Fallback to "nogroup" or GID_NOGROUP
Dec 16 2024, 2:46 PM
olce closed D47771: MAC/do: Sort header inclusions.
Dec 16 2024, 2:46 PM
olce closed D47881: syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort.
Dec 16 2024, 2:46 PM
olce closed D46922: cred: proc_set_cred(): Remove obsolete comments.
Dec 16 2024, 2:46 PM
olce committed rGf5b46856918c: cred: crget(): Compute initial 'cr_agroups' with nitems() (authored by olce).
cred: crget(): Compute initial 'cr_agroups' with nitems()
Dec 16 2024, 2:46 PM
olce closed D46923: cred: proc_set_cred(), proc_unset_cred(): Update user's process count.
Dec 16 2024, 2:46 PM
olce closed D47014: mountd(8): parsecred(): Remove comment on non-existent bug.
Dec 16 2024, 2:46 PM
olce committed rG3bdc5ba2ac76: MAC: syscalls: mac_label_copyin(): 32-bit compatibility (authored by olce).
MAC: syscalls: mac_label_copyin(): 32-bit compatibility
Dec 16 2024, 2:46 PM
olce committed rGae22a4bb7437: mountd(8): parsecred(): uid:gid:... loop: Simplify a bit (authored by olce).
mountd(8): parsecred(): uid:gid:... loop: Simplify a bit
Dec 16 2024, 2:46 PM
olce closed D47013: nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials.
Dec 16 2024, 2:46 PM
olce committed rG8a4d24a39098: MAC: syscalls: Split mac_set_proc() into reusable pieces (authored by olce).
MAC: syscalls: Split mac_set_proc() into reusable pieces
Dec 16 2024, 2:46 PM
olce committed rGdb33c6f3ae9d: MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes (authored by olce).
MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes
Dec 16 2024, 2:46 PM
olce committed rG2e593dd3b5e1: MAC: syscalls: Factor out common label copy-in code (authored by olce).
MAC: syscalls: Factor out common label copy-in code
Dec 16 2024, 2:46 PM
olce committed rGf7bda491ef05: jail.h: New SYSCTL_JAIL_PARAM_DECL() (authored by olce).
jail.h: New SYSCTL_JAIL_PARAM_DECL()
Dec 16 2024, 2:46 PM
olce closed D47011: mountd(8): parsecred(): Fallback to "nogroup" or GID_NOGROUP.
Dec 16 2024, 2:46 PM
olce committed rG9f8020e65ba8: jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE() (authored by olce).
jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE()
Dec 16 2024, 2:46 PM
olce committed rGf8fe6bc73bbb: jail.h: Fix whitespace in the param macros declaration block (authored by olce).
jail.h: Fix whitespace in the param macros declaration block
Dec 16 2024, 2:46 PM
olce closed D46910: cred: crget(): Compute initial 'cr_agroups' with nitems().
Dec 16 2024, 2:46 PM
olce committed rG5041b20503db: MAC: Define a common 'mac' node for MAC's jail parameters (authored by olce).
MAC: Define a common 'mac' node for MAC's jail parameters
Dec 16 2024, 2:46 PM
olce committed rG90678c892d7b: MAC: 'kernel_mac_support' module: Make an outdated comment more generic (authored by olce).
MAC: 'kernel_mac_support' module: Make an outdated comment more generic
Dec 16 2024, 2:46 PM
olce closed D47878: MAC: syscalls: mac_label_copyin(): 32-bit compatibility.
Dec 16 2024, 2:46 PM
olce closed D46905: MAC: syscalls: Split mac_set_proc() into reusable pieces.
Dec 16 2024, 2:46 PM
olce closed D46904: MAC: syscalls: Factor out common label copy-in code.
Dec 16 2024, 2:46 PM
olce committed rGb47f4718c072: MAC: mac.h: Separately test inclusion from userspace (authored by olce).
MAC: mac.h: Separately test inclusion from userspace
Dec 16 2024, 2:46 PM
olce closed D46903: MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes.
Dec 16 2024, 2:45 PM
olce committed rG5140ccf2268b: MAC: mac.h: Fix missing includes/typedefs (authored by olce).
MAC: mac.h: Fix missing includes/typedefs
Dec 16 2024, 2:45 PM
olce closed D46902: jail.h: New SYSCTL_JAIL_PARAM_DECL().
Dec 16 2024, 2:45 PM
olce committed rG34740937f7a4: queue: New debug macros for STAILQ (authored by olce).
queue: New debug macros for STAILQ
Dec 16 2024, 2:45 PM
olce closed D46901: jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE().
Dec 16 2024, 2:45 PM
olce committed rG9dc5b3dbb063: refcount: Constify refcount_load() (authored by olce).
refcount: Constify refcount_load()
Dec 16 2024, 2:45 PM
olce closed D46900: jail.h: Fix whitespace in the param macros declaration block.
Dec 16 2024, 2:45 PM
olce closed D46899: MAC: Define a common 'mac' node for MAC's jail parameters.
Dec 16 2024, 2:45 PM
olce closed D46898: MAC: 'kernel_mac_support' module: Make an outdated comment more generic.
Dec 16 2024, 2:45 PM
olce committed rG5e9a82e898d5: atomics: Constify loads (authored by olce).
atomics: Constify loads
Dec 16 2024, 2:45 PM
olce closed D46897: MAC: mac.h: Separately test inclusion from userspace.
Dec 16 2024, 2:45 PM
olce committed rG4a26b63145a5: osd: Constify signature of osd_register() (authored by olce).
osd: Constify signature of osd_register()
Dec 16 2024, 2:45 PM
olce closed D46896: MAC: mac.h: Fix missing includes/typedefs.
Dec 16 2024, 2:45 PM
olce closed D46889: queue: New debug macros for STAILQ.
Dec 16 2024, 2:45 PM
olce closed D46888: refcount: Constify refcount_load().
Dec 16 2024, 2:45 PM
olce closed D46887: atomics: Constify loads.
Dec 16 2024, 2:45 PM
olce closed D46886: osd: Constify signature of osd_register().
Dec 16 2024, 2:45 PM
olce added a comment to D48093: RELNOTES: Document file handle layout changes.

Thanks. But while we're here, shouldn't it wait for D47956 as well? Going to update it in a short while to separate the change of switching the generation number to 32 bits to another revision so that the rest can be reviewed and hopefully approved/committed shortly.

Dec 16 2024, 2:00 PM
olce added a comment to D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure.
Dec 16 2024, 1:57 PM

Dec 13 2024

olce added inline comments to D48063: setcred(): Add manual page.
Dec 13 2024, 3:36 PM
olce updated the diff for D48063: setcred(): Add manual page.

Apply suggestions.

Dec 13 2024, 3:36 PM
olce added a comment to D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure.

Just fyi, whenever the "struct fid" changes,
(snip)
RELNOTES entry is needed.

Dec 13 2024, 2:10 PM
olce committed rG8ae6247aa966: ext2fs: 'struct ufid': Re-order fields and unpack (authored by olce).
ext2fs: 'struct ufid': Re-order fields and unpack
Dec 13 2024, 2:06 PM
olce committed rGcf0ede720391: tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing (authored by olce).
tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing
Dec 13 2024, 2:06 PM
olce closed D47955: ext2fs: 'struct ufid': Re-order fields and unpack.
Dec 13 2024, 2:06 PM
olce closed D47954: tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing.
Dec 13 2024, 2:06 PM
olce added inline comments to D48063: setcred(): Add manual page.
Dec 13 2024, 11:06 AM
olce updated the diff for D48063: setcred(): Add manual page.

Apply (most) suggestions. Tiny word additions to HISTORY and SECURITY CONSIDERATIONS.

Dec 13 2024, 11:06 AM
olce added reviewers for D48070: libprocstat: ZFS support: Makefile: Tidy up a bit: emaste, kevans.
Dec 13 2024, 10:21 AM
olce requested review of D48070: libprocstat: ZFS support: Makefile: Tidy up a bit.
Dec 13 2024, 10:20 AM

Dec 12 2024

olce requested review of D48063: setcred(): Add manual page.
Dec 12 2024, 10:35 PM
olce retitled D48062: (draft) i386 atomics: Implement 64-bit loading with SSE2 from i386 atomics: Implement 64-bit loading with SSE2 to (draft) i386 atomics: Implement 64-bit loading with SSE2.
Dec 12 2024, 10:33 PM
olce requested review of D48062: (draft) i386 atomics: Implement 64-bit loading with SSE2.
Dec 12 2024, 10:25 PM
olce requested review of D48061: x86 atomics: Remove unused WANT_FUNCTIONS.
Dec 12 2024, 10:24 PM
olce updated the diff for D46887: atomics: Constify loads.

Fix compilation of atomic_load_acq_64_i586(). Expand commit message.

Dec 12 2024, 10:22 PM

Dec 9 2024

olce added inline comments to D47954: tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing.
Dec 9 2024, 1:20 PM
olce updated the diff for D47954: tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing.

unsigned int => uint32_t as suggested.

Dec 9 2024, 1:20 PM
olce added a comment to D47956: tmpfs: Rework file handles.

Btw, I replaced "sizeof(struct fid)" with MAXFIDSZ in the _Static_assert()
and it passed (at least for amd64).

Dec 9 2024, 10:29 AM
olce added a comment to D47956: tmpfs: Rework file handles.

I'll leave it someone familiar with tmpfs to decide if having
tn_gen wrap around to zero is a real concern.

Dec 9 2024, 10:16 AM

Dec 6 2024

olce added a comment to D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure.

Leaving the layout completely to the filesystem means we could get rid of fid_len. I'm not completely sure if we really want to be doing so. fid_len could serve the purpose of limiting which bytes are actually compared to determine which handles are the same (which needs a slight amendment to tmpfs or zfs, as they are not consistent with what they store into fid_len), possibly avoiding problems with uninitialized bits. It could also be handy if we decided to switch to dynamic allocation (just saying; I'm not aware of an actual need to do that).

Unless you think it would be preferable to remove fid_len entirely, I'll draft some concrete changes giving fid_len a standard meaning.

What changes do you propose?

Dec 6 2024, 10:35 PM
olce requested review of D47956: tmpfs: Rework file handles.
Dec 6 2024, 10:19 PM
olce requested review of D47955: ext2fs: 'struct ufid': Re-order fields and unpack.
Dec 6 2024, 10:19 PM
olce requested review of D47954: tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing.
Dec 6 2024, 10:19 PM
olce added inline comments to D47618: New setcred() system call and associated MAC hooks.
Dec 6 2024, 2:19 PM
olce awarded Dev Summit Attendee to recipient: olce.
Dec 6 2024, 2:17 PM
olce added a comment to D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure.

That doesn't seem possible as len and pad must stay first.

As far as I can see, this isn't true - the layout is up to the filesystem.

Dec 6 2024, 10:09 AM
olce added a comment to D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure.

I think more relevant question there are compilers generate proper code to access unaligned ifid_ino and ifid_start on sensitive arches.

I mentioned in a secteam chat that we should have a comment about unaligned access in arch(7). (The only comment we have right now is Most ILP32 ABIs, except arm, require only 4-byte alignment for 64-bit integers.)

Dec 6 2024, 8:29 AM
olce added inline comments to D47618: New setcred() system call and associated MAC hooks.
Dec 6 2024, 8:17 AM

Dec 5 2024

olce updated the diff for D47621: mdo(1): Use setcred() to change credentials.

Impacts of some setcred() changes.

Dec 5 2024, 9:12 PM
olce updated the diff for D47620: MAC/do: Interpret the new rules specification; Monitor setcred().

Remove from the diff small pieces that did not belong here but to an earlier revision.

Dec 5 2024, 9:07 PM