mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
trivial: Fix spelling of "privilege"
I noticed the spelling mistake while reviewing another change and doing a "grep" for "privilege" that turned up nothing. Fixes: #671 Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
c7745a3350
commit
dd60e56f28
@ -100,7 +100,7 @@ pub fn reset_effective() -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn drop_priviledges(cfd_log: RawFd, caps: &LinuxCapabilities) -> Result<()> {
|
pub fn drop_privileges(cfd_log: RawFd, caps: &LinuxCapabilities) -> Result<()> {
|
||||||
let all = caps::all();
|
let all = caps::all();
|
||||||
|
|
||||||
for c in all.difference(&to_capshashset(cfd_log, caps.bounding.as_ref())) {
|
for c in all.difference(&to_capshashset(cfd_log, caps.bounding.as_ref())) {
|
||||||
|
@ -575,7 +575,7 @@ fn do_init_child(cwfd: RawFd) -> Result<()> {
|
|||||||
|
|
||||||
if oci_process.capabilities.is_some() {
|
if oci_process.capabilities.is_some() {
|
||||||
let c = oci_process.capabilities.as_ref().unwrap();
|
let c = oci_process.capabilities.as_ref().unwrap();
|
||||||
capabilities::drop_priviledges(cfd_log, c)?;
|
capabilities::drop_privileges(cfd_log, c)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if init {
|
if init {
|
||||||
|
@ -1453,7 +1453,7 @@ func addHTBQdisc(linkIndex int, maxRate uint64) error {
|
|||||||
Parent: netlink.HANDLE_ROOT,
|
Parent: netlink.HANDLE_ROOT,
|
||||||
}
|
}
|
||||||
qdisc := netlink.NewHtb(qdiscAttrs)
|
qdisc := netlink.NewHtb(qdiscAttrs)
|
||||||
// all non-priviledged traffic go to classid 1:2.
|
// all non-privileged traffic go to classid 1:2.
|
||||||
qdisc.Defcls = 2
|
qdisc.Defcls = 2
|
||||||
|
|
||||||
err := netlink.QdiscAdd(qdisc)
|
err := netlink.QdiscAdd(qdisc)
|
||||||
@ -1476,7 +1476,7 @@ func addHTBQdisc(linkIndex int, maxRate uint64) error {
|
|||||||
return fmt.Errorf("Failed to add htb classid 1:1 : %v", err)
|
return fmt.Errorf("Failed to add htb classid 1:1 : %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// above class has at least one default child class(1:2) for all non-priviledged traffic.
|
// above class has at least one default child class(1:2) for all non-privileged traffic.
|
||||||
classAttrs = netlink.ClassAttrs{
|
classAttrs = netlink.ClassAttrs{
|
||||||
LinkIndex: linkIndex,
|
LinkIndex: linkIndex,
|
||||||
Parent: netlink.MakeHandle(1, 1),
|
Parent: netlink.MakeHandle(1, 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user