<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I want to have my daemon be able to create user home directories.&nbsp; It currently does this by running a script.&nbsp; What is the correct way to have the script create the home directory with the correct context type?<br><br>In my daemons selinux policy I have set:<br><br>userdom_home_filetrans_user_home_dir(qasd_t), but when the daemon launches the script to create a users home directory the directory is ends up with a context type of home_root_t instead of user_home_dir_t like I was expecting.<br><br>What am I missing here? I was under that understanding that userdom_home_filetrans_user_home_dir do a type transition for me from home_root_t to user_home_dir_t when I created a new directory under /home.&nbsp; Is this not correct?<br>                                               </div></body>
</html>