タイムスタンプ プロセス用に新しいドメイン タイプを作成するときに SEAndroid に関する質問がありますが、neverallow との競合の問題はまだあります。誰かが私にヒントや手がかりを与えることができますか? 以下の説明を参照してください。
avc 拒否ログ:
[ 120.810387] type=1400 audit(932699.049:188): avc: pid=3875 comm="system_server" path="/system/bin/sh" dev="mmcblk0p47" ino=791 scontext=u に対して拒否された { execute_no_trans }: r:system_server:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1 [120.827670] type=1400 audit(932699.049:188): avc: pid=3875 comm="system_server" path= の { execute_no_trans } が拒否されました"/system/bin/sh" dev="mmcblk0p47" ino=791 scontext=u:r:system_server:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1 [ 120.827684] type=1400 audit(932699.069: 189): avc: pid=3877 comm="sh" path="/system/bin/timestamp" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r の { getattr } が拒否されました:system_file:s0 tclass=file permissive=1 [ 120.828287] type=1400 audit(932699.069:189): avc: pid=3877 comm="sh" path="/system/bin/timestamp" dev="mmcblk0p47" ino=832 scontext=u:r の拒否 { getattr } :system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 [ 120.828300] type=1400 audit(932699.069:190): avc: pid=3877 comm="sh" name="の {実行} が拒否されましたタイムスタンプ" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 [ 120.828593] type=1400 監査 (932699.069:190): avc: 拒否{ 実行 } for pid=3877 comm="sh" name="timestamp" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 [ 120.828607] タイプ = 1400 監査 (932699.069:191): avc:pid=3877 comm="sh" path="/system/bin/timestamp" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 の拒否された { read open } tclass=file permissive=1 [ 120.828981] type=1400 audit(932699.069:191): avc: pid=3877 の拒否された { read open } comm="sh" path="/system/bin/timestamp" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 [120.828996] type=1400 audit(932699.069:192): avc: pid=3877 に対して拒否された { execute_no_trans } comm="sh" path="/system/bin/timestamp" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 [ 120.845574] type=1400 audit(932699.069:192): avc:拒否された { execute_no_trans } for pid=3877 comm="sh" path="/system/bin/timestamp" dev="mmcblk0p47" ino=832 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass =file permissive=1 [ 120.845587] type=1400 audit(932699.089:193): avc: denied { execute_no_trans } for pid=3879 comm="sh" path="/system/bin/dumpsys" dev="mmcblk0p47" ino= 570 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=ファイル許可=1mmcblk0p47" ino=570 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1mmcblk0p47" ino=570 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1
私のタイムスタンプ.te:
type timestamp, domain;
type timestamp_exec, exec_type, file_type;
init_daemon_domain(timestamp)
私のファイルコンテキスト:
/system/bin/timestamp u:object_r:timestamp_exec:s0
私のsystem_server.te:
allow system_server timestamp_exec:file { execute_no_trans getattr execute read open };
コンパイラ失敗ログ:
次にエコー \"==========\" 1>&2; echo \"エラー: ユーザー ビルドではパーミッシブ ドメインは許可されていません\" 1>&2; echo \"無効なドメインのリスト:\" 1>&2; cat out/target/product/msm8996/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2; 出口1; fi ) && (mv out/target/product/msm8996/obj/ETC/sepolicy_intermediates/sepolicy.tmp out/target/product/msm8996/obj/ETC/sepolicy_intermediates/sepolicy )" neverallow チェックが out/target/product/msm8996 で失敗しました/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:12033 システム/sepolicy/private/system_server.te から: