← Back to Pull requests

objectfs: chmod, chown, timestamps (SetAttr), atime/ctime, and kernel permissions #151

Closed
unknown closed this pull request without merging on Oct 03, 2026 20:57 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 14:42 UTC
Author

Summary

Implements SetAttr (chmod, chown, utimensat), POSIX atime / ctime timestamp management, directory setgid inheritance, and FUSE default_permissions mount options for kernel POSIX permission enforcement.

Details

  • Protobuf API: Added SetAttr RPC (SetAttrRequest / SetAttrResponse), added atime, ctime, uid, and gid to Inode and EntryAttr, and added MUTATION_TYPE_SETATTR.

  • Controller & Inode table:

  • - Implemented SetAttr RPC addressed by inode with optional mode, uid, gid, atime, and mtime (including now options) logged to the SDS metadata stream as an Inode update.
    - Added Atime and Ctime to CachedInode, InodeRecord, and FileMetadata.
    - Updated ctime on metadata mutations (chmod, chown, utimes, rename, truncate, write, mkdir, link/unlink/rmdir).
    - Implemented setgid directory inheritance: new subdirectories in a setgid directory inherit parent GID and the 02000 setgid bit; new files inherit parent GID without setgid.
    - Snapshots persist and restore uid, gid, mode, mtime, atime, and ctime.
  • FUSE Client & Mount:

  • - Implemented FUSE SetAttr handling FATTR_MODE, FATTR_UID, FATTR_GID, FATTR_ATIME, FATTR_MTIME, and FATTR_CTIME, with support for combined truncate + attribute changes.
    - Enabled default_permissions in objectfsctl mount and objectfs-node-daemon.
  • Tests & Expected Failures:

  • - Removed chmod (10), chown (8), utimensat (9), and 16 permission-check tests from tests/posix/expected-failures.txt.
    - Added unit tests for SetAttr, timestamp updates, setgid inheritance, tar extraction preservation, and FUSE SetAttr operations.

    Fixes #127

    Diff: 211 lines (+158 / -53) across 2 files Reviewer: justinsb Review duration: 375m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.60) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 211 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    57%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.320
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #151"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 59.7% (MEDIUM) · Higher = larger blast radius
    59.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 58.0% · Lower = rushed or shallow review
    58.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25.1% · Safe to merge
    25.1%