relabelto and relabelfrom

Henry Zhang <[email protected]> Mon, 18 Dec 2023 16:10:08 -0800
Newsgroups gmane.linux.redhat.fedora.selinux
Message-ID <CANTW0yrHs9WV0fk7Beg1k0AiTQSXsu7wNxcYz6fnMOdiQKnUQw@mail.gmail.com>
--===============4451993492119393496==
Content-Type: multipart/alternative; boundary="0000000000001b798d060cd1b10f"

--0000000000001b798d060cd1b10f
Content-Type: text/plain; charset="UTF-8"

Hi folks,

In SELinux, relabelto and relabelfrom are terms that inform the policy if a
relabel operation (change of context) is allowed from a particular label
(context) or towards a particular label (context).

Without using them, no relabel is allowed?

Thanks.

---henry

--0000000000001b798d060cd1b10f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi folks,</div><div><br></div><div>In SELinux, <code =
style=3D"background-color:rgb(40,42,54);padding:3px;border-radius:8px;color=
:white">relabelto</code> and <code style=3D"background-color:rgb(40,42,54);=
padding:3px;border-radius:8px;color:white">relabelfrom</code>
 are terms that inform the policy if a relabel operation (change of=20
context) is allowed from a particular label (context) or towards a=20
particular label (context).</div><div><br></div><div>Without using them, no=
 relabel is allowed?<br><br></div><div>Thanks.</div><div><br></div><div>---=
henry<br></div></div>

--0000000000001b798d060cd1b10f--

--===============4451993492119393496==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

LS0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kc2VsaW51
eCBtYWlsaW5nIGxpc3QgLS0gc2VsaW51eEBsaXN0cy5mZWRvcmFwcm9qZWN0Lm9yZwpUbyB1bnN1
YnNjcmliZSBzZW5kIGFuIGVtYWlsIHRvIHNlbGludXgtbGVhdmVAbGlzdHMuZmVkb3JhcHJvamVj
dC5vcmcKRmVkb3JhIENvZGUgb2YgQ29uZHVjdDogaHR0cHM6Ly9kb2NzLmZlZG9yYXByb2plY3Qu
b3JnL2VuLVVTL3Byb2plY3QvY29kZS1vZi1jb25kdWN0LwpMaXN0IEd1aWRlbGluZXM6IGh0dHBz
Oi8vZmVkb3JhcHJvamVjdC5vcmcvd2lraS9NYWlsaW5nX2xpc3RfZ3VpZGVsaW5lcwpMaXN0IEFy
Y2hpdmVzOiBodHRwczovL2xpc3RzLmZlZG9yYXByb2plY3Qub3JnL2FyY2hpdmVzL2xpc3Qvc2Vs
aW51eEBsaXN0cy5mZWRvcmFwcm9qZWN0Lm9yZwpEbyBub3QgcmVwbHkgdG8gc3BhbSwgcmVwb3J0
IGl0OiBodHRwczovL3BhZ3VyZS5pby9mZWRvcmEtaW5mcmFzdHJ1Y3R1cmUvbmV3X2lzc3VlCg==

--===============4451993492119393496==--