|
Lines 1600-1607
Link Here
|
| 1600 |
*/ |
1600 |
*/ |
| 1601 |
security_context_t sc = NULL; |
1601 |
security_context_t sc = NULL; |
| 1602 |
|
1602 |
|
| 1603 |
if (getfilecon(node, &sc) > 0 && strcmp("unlabeled", sc)) |
1603 |
if (getfilecon(node, &sc) > 0 && strcmp("unlabeled", sc)) { |
| 1604 |
append_context("rootcontext=", (char *) sc, &mount_opts); |
1604 |
append_context("rootcontext=", (char *) sc, &mount_opts); |
|
|
1605 |
/* append_context calls xstrconcat4 which might free its first |
| 1606 |
* argument, which is &mount_opts here. However, mount_opts is |
| 1607 |
* pointed to by extra_opts(1) as well, so we need to reset those |
| 1608 |
*/ |
| 1609 |
extra_opts = mount_opts; |
| 1610 |
extra_opts1 = mount_opts; |
| 1611 |
} |
| 1612 |
|
| 1605 |
freecon(sc); |
1613 |
freecon(sc); |
| 1606 |
} |
1614 |
} |
| 1607 |
#endif |
1615 |
#endif |