We cannot set sharing and permissions for the Master and Detail objects separately.
Detail and subdetail(parent and child) records inherit security settings and permissions from the master(parent) record. You can’t set permissions on the detail record independently.
Reference Article: