JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... shmid_ds 構造体へのポインターである。 この構造体は < sys/shm.h > で以下のように定義されている struct shmid_ds { struct ipc_perm shm_perm; /* 所有権と許可 */ size_t shm_segsz; /* セグメントのサイズ (バイト) */ time_t shm_atime; /* 最後の付加 (attach) ... t (2) の PID */ shmatt_t shm_nattch; /* 現在付加されている数 */ ... }; shmid_ds 構造体のフィールドは以下の通りである。 shm_perm This is an ipc_perm structure (see below) that specifies the access permissions on the shared memory segment. shm_segsz 共 ... a shmat (2) or shmdt (2) system call on this segment. shm_nattch Number of processes that have this segment attached. ipc_perm 構造体は以下のように定義されている (強調されたフィールドは IPC_SET を使って設定可能である): struct ipc_perm { key_t __key; ... ... 定された制御操作を行なう。 msqid_ds データ構造体は < sys/msg.h > で以下のように定義されている: struct msqid_ds { struct ipc_perm msg_perm; /* Ownership and permissions */ time_t msg_stime; /* Time of last msgsnd (2) */ time_t msg_rtime; /* Time of las ... of last msgsnd (2) */ pid_t msg_lrpid; /* PID of last msgrcv (2) */ }; msgid_ds 構造体のフィールドは以下の通りである: msg_perm This is an ipc_perm structure (see below) that specifies the access permissions on the message queue. msg_stime 最後の msg ... msgsnd (2) システムコールを実行したプロセスの ID。 msg_lrpid 最後の msgrcv (2) システムコールを実行したプロセスの ID。 ipc_perm 構造体は以下のように定義されている (強調されたフィールドは IPC_SET を使って設定可能である): struct ipc_perm { key_t __key; ... ... ッファー (Linux 固有) */ }; semid_ds データ構造体は < sys/sem.h > で以下のように定義されている: struct semid_ds { struct ipc_perm sem_perm; /* 所有権と許可 */ time_t sem_otime; /* 最後の semop の時刻 */ time_t sem_ctime; /* 作成時刻/semctl() により 最後 ... れた時刻 */ unsigned long sem_nsems; /* 集合内のセマフォの数 */ }; The fields of the semid_ds structure are as follows: sem_perm This is an ipc_perm structure (see below) that specifies the access permissions on the semaphore set. sem_otime Time of la ... emaphores in the set. Each semaphore of the set is referenced by a nonnegative integer ranging from 0 to sem_nsems-1 . ipc_perm 構造体は以下のように定義されている (強調されたフィールドは IPC_SET を使って設定可能である): struct ipc_perm { key_t __key; ... ... は、 アクセスコントロールリスト (access control list; ACL) や、 この他のパーミッション機能を考慮します。 ちなみに、 テスト -perm では無視されます。 本テストは、 システムコール access (2) を利用するので、 NFS サーバーが UID マッピング (つまり root squa ... イントには、 おそらく一致します)。 述語表現 -path は、 HP-UX の find でもサポートされていて、 POSIX 2008 規格に存在します。 -perm mode ファイルの許可属性が mode (8 進数表現またはシンボル表現) に一致するかどうかをテストします。 mode 指定のこの形式では、 ... 求められるので、 この形式をシンボリックモードで使う場合には、 モード文字列の指定が多少複雑になるかもしれません。 たとえば `-perm g=w' は、 許可属性が 0020 のファイルにのみ一致します (つまり、 グループの書き込み権限のみを設定します)。 おそらく、 `/' や ... ... irectory itself has been moved. An fanotify group that identifies filesystem objects by file handles is required. FAN_OPEN_PERM ファイルやディレクトリをオープンするアクセス許可が要求された際にイベントを作成する。 fanotify ファイルディスクリプターが F ... AN_CLASS_PRE_CONTENT か FAN_CLASS_CONTENT を指定されて作成されている必要がある。 FAN_OPEN_EXEC_PERM (since Linux 5.0) Create an event when a permission to open a file for execution is requested. An fanotify file descriptor ... created with FAN_CLASS_PRE_CONTENT or FAN_CLASS_CONTENT is required. See NOTES for additional details. FAN_ACCESS_PERM ファイルやディレクトリを読み出すアクセス許可が要求された際にイベントを作成する。 fanotify ファイルディスクリプターが FAN_C ... ... テムコールはメッセージキューのデータ構造体 msqid_ds を以下のように初期化する ( msqid_ds については msgctl (2) を参照): • msg_perm.cuid と msg_perm.uid に呼び出し元プロセスの実効 (effective) ユーザーID を設定する。 • msg_perm.cgid と msg_perm.gid に呼び ... 出し元プロセスの実効 (effective) グループID を設定する。 • msg_perm.mode の下位 9 ビットは msgflg の下位 9 ビットを設定する。 • msg_qnum , msg_lspid , msg_lrpid , msg_stime , msg_rtime に 0 ... errno に以下の値のいずれか一つが設定される: EACCES A message queue exists for key , but the calling process does not have permission to access the queue, and does not have the CAP_IPC_OWNER capability in the user namespace that governs its IPC names ... ... はセマフォ集合の情報を保持するデータ構造体 semid_ds を次のように初期化する ( semid_ds については semctl (2) を参照): • sem_perm.cuid と sem_perm.uid に、呼び出し元のプロセスの実効 (effective) ユーザー ID を設定する。 • sem_perm.cgid と sem_perm.gid に ... 、呼び出し元のプロセスの実効 (effective) グループ ID を設定する。 • sem_perm.mode の下位 9 ビットに semflg の下位 9 ビットを設定する。 • sem_nsems に nsems の値を設定する。 • sem_otime に 0 を設定する ... 場合は errno には以下の値のどれかが設定される: EACCES A semaphore set exists for key , but the calling process does not have permission to access the set, and does not have the CAP_IPC_OWNER capability in the user namespace that governs its IPC namespa ... ... スクリプターから ( read (2) などを使って) 読み出すことができる。 Two types of events are generated: notification events and permission events. Notification events are merely informative and require no action to be taken by the receiving application wi ... th one exception: if a valid file descriptor is provided within a generic event, the file descriptor must be closed. Permission events are requests to the receiving application to decide whether permission for a file access shall be granted. Fo ... 限を超過した。 この上限は fanotify_init (2) 呼び出し時に FAN_UNLIMITED_QUEUE フラグを指定することで上書きできる。 FAN_ACCESS_PERM アプリケーションが例えば read (2) や readdir (2) などを使ってファイルやディレクトリを読み出そうとした。 このイベントを読み ... ... 共有メモリーセグメントの内容は 0 で初期化され、 関連情報を保持するデータ構造体 shmid_ds は以下のように初期化される。 • shm_perm.cuid と shm_perm.uid に呼び出し元プロセスの実効 (effective) ユーザーID を設定する。 • shm_perm.cgid と shm_perm.gid に呼び ... 出し元プロセスの実効グループID を設定する。 • shm_perm.mode の下位 9 ビットに shmflg の下位 9 ビットを設定する。 • shm_segsz に size の値を設定する。 • shm_lpid , shm_nattch , s ... errno にエラーを示す値が設定される。 エラー 失敗した場合は errno が以下のどれかに設定される: EACCES The user does not have permission to access the shared memory segment, and does not have the CAP_IPC_OWNER capability in the user namespace that gover ... ... の各ファイルに適用される。 各 ACL は文字列であり、 acl_from_text (3) ルーチンを使って解釈される。 これらの文字列は、tag:name:perm という形式の コンマで区切られた節 (clause) で構成される。 ここで tag は以下の何れかである: "user" (または "u") エントリがユ ... ある。 ユーザまたはグループの ACL エントリにおいて name が空の場合は、 それぞれファイルの所有者とファイルのグループを表す。 perm は文字列 "rwx" であり、 各エントリはそのタイプのアクセスを許可しないことを示すために "-" で置き換えることができる。 例えば ... する場合は、 最初に chacl -l を実行して既存の ACL を取得し、 chacl の引き数を作るためにその出力を使うこと。 ファイルの許可 (permission) ビットを変更すると、 ファイルアクセス ACL の設定が変更される ( chmod (1) を参照)。 しかし、ファイル作成モードマスク ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。