Skip to contentSkip to conversation

Fractal Based Encryption

DISCUSSION R2-Q2 3 participants 6 messages Mar 27, 2002 SELinux security module

lore
Share & tools
lore

R2-Q2

author
#0 lore raw

I am thinking about intragrating this into the SElinux kernel though I need some help.Abstract: This discusses the unification of two important mathematical ideas. One a fractal. Two the one time pad system. I assume that you are familar with the one time pad system so onto the fractals. Fractals are fountains of chaos. There most basic methodolgies are that they
1. Increase in chaos when you look deeper into the fractal (Important)
2. Have patterns at a higher order.
If you are still confused then a good site that will give you a more indepth idea about fractals is <a HREF ="http://mathbu.edu/DYSYS/FRACGEO/index.html> Duke Fractals </a> Now here is the interesting part. If you apply the fractals as the one time pad two things are solved. One is the size of the one time pad. Since fractals are chaotic then they can be used as a one time pad. Another is that they can be represented as only as a few variables. Therefore fractals are a extremely good solution to the dissappointments to the one time pad system. That is all of my encryption technologies. I am a researcher in chaos theory ( for about x days). I have a company also. Please respond to this email. I will appreciate it fully because I need verification on the quality of this encryption algorhythim.

										-r2q2

</textarea>

=====
Fly like a bee sting like a butterfly.

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 2 lines · On Wed, 27 Mar 2002 12:20, R2-Q2 wrote:

I am thinking about intragrating this into the SElinux kernel though I need some help.Abstract: This discusses the unification of two

Why would encryption need to be integrated into SE Linux?

Sure people who want SE Linux want encryption. But why do they need to be directly connected?

Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 4 lines · Russell Coker

Why would encryption need to be integrated into SE Linux?

Sure people who want SE Linux want encryption. But why do they need to be directly connected?

They don't have to be directly connected (e.g. you can use FreeSWAN IPSEC orthogonally with SELinux), but there are some reasons to consider tighter integration. See Pete's earlier email on this topic at
http://marc.theaimsgroup.com/?l=selinux&m=98175653726530&w=2.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 10 lines · Stephen Smalley
Quoted 4 lines · Russell Coker

Why would encryption need to be integrated into SE Linux?

Sure people who want SE Linux want encryption. But why do they need to be directly connected?

They don't have to be directly connected (e.g. you can use FreeSWAN IPSEC orthogonally with SELinux), but there are some reasons to consider tighter integration. See Pete's earlier email on this topic at
http://marc.theaimsgroup.com/?l=selinux&m=98175653726530&w=2.

OK, that makes sense.

Pete's message seems to just imply making decisions regarding whether to encrypt or what type of encryption to use just based on domain. However I think (and I'm sure you and Pete have already considered this) that to do this properly you would want a framework where different file types are encrypted with different keys and could be selectively locked and unlocked.

For example, I have on my laptop ssh keys that give me access to client's machines (before someone makes nasty comments - when you travel to numerous sites and need to login via ssh there is no other option). The ssh-askpass program has a number of limitations, so instead I'd like to be able to encrypt the ssh id_rsa files in the kernel, and have a utility program to unlock or lock these files (unlocking them would involve storing the encryption password in the kernel). Then we would need a "fuser -k" type facility to force programs to stop using files when they are to be locked again.

This brings me to another issue I have been considering, that of newrole passwords. It's standard proceedure to have root and user passwords be different even if you only login as a regular user for the purpose of "su -". Therefore I am concerned that we are limited by the utility programs only supporting the regular password for doing a "newrole -r sysadm_r".

I would like the option to be able to enforce that a login only gets the default role (no prompting for other roles or domains) and then have different passwords needed to get to roles or domains that have more privs.

Another thing, it would be nice if the run_init and newrole programs prompted you for which user's password they expected. Often when I've su'd to root I forget which account I originally logged in with, then newrole and run_init fail because I entered the password for the wrong account. In my Debian package I've added the account name to the error message so at least you can get it right the second time.

I've CC'd this message to the ReiserFS list as people there have been discussing file system encryption recently.

Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw

Re: newrole passwords (Was: Fractal Based Encryption)

Quoted 9 lines · Russell Coker

This brings me to another issue I have been considering, that of newrole passwords. It's standard proceedure to have root and user passwords be different even if you only login as a regular user for the purpose of "su -". Therefore I am concerned that we are limited by the utility programs only supporting the regular password for doing a "newrole -r sysadm_r".

I would like the option to be able to enforce that a login only gets the default role (no prompting for other roles or domains) and then have different passwords needed to get to roles or domains that have more privs.

At present, authorization for roles is completely orthogonal to authentication. Users are authorized for roles by the policy/users file. If a user is authorized for a given role in policy/users, then that user can enter that role, either at login time (via login or gdm case, but not currently ssh) or subsequently via newrole. At login time, we authenticate the user as usual. With newrole, we re-authenticate the user originally authenticated at login time to protect against invocation of newrole by malicious code accidentally run by the user. The newrole authentication is merely to verify the user's intent, not as an authorization mechanism for the role.

At present, SELinux doesn't modify PAM at all, and newrole uses PAM to perform the authentication. We could modify PAM to support per-role per-user passwords, checked both at login time and by newrole, but I'm not sure that this is desirable. If you are concerned about the limitations of passwords, then you can always use a stronger authentication mechanism through your PAM configuration.

With regard to forcing a particular role at login time, this is already the case for ssh (always uses the default context for the user). For local logins, you can limit all users to entering a particular domain (e.g. user_t) by restricting domain transitions from local_login_t in the policy. Per-user restrictions for local logins would require changing login to simply use the default context, like sshd.

Quoted 6 lines

Another thing, it would be nice if the run_init and newrole programs prompted you for which user's password they expected. Often when I've su'd to root I forget which account I originally logged in with, then newrole and run_init fail because I entered the password for the wrong account. In my Debian package I've added the account name to the error message so at least you can get it right the second time.

Good point. Thanks for the suggestion.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw

Re: newrole passwords (Was: Fractal Based Encryption)

Quoted 6 lines · Russell Coker

Another thing, it would be nice if the run_init and newrole programs prompted you for which user's password they expected. Often when I've su'd to root I forget which account I originally logged in with, then newrole and run_init fail because I entered the password for the wrong account. In my Debian package I've added the account name to the error message so at least you can get it right the second time.

The attached patch changes newrole and run_init to display the user identity prior to the authentication (as well as after if the authentication fails).

--
Stephen D. Smalley, NAI Labs
[email protected]

Index: utils/newrole/newrole.c
===================================================================
RCS file: /cvs/lsm/selinux/utils/newrole/newrole.c,v retrieving revision 1.13
retrieving revision 1.14

newrole/newrole.c +1 -3
diff -u -r1.13 -r1.14
@@ -407,9 +407,7 @@
   pw->pw_dir = xstrdup(pw->pw_dir);
   pw->pw_shell = xstrdup(pw->pw_shell);
 
-#ifdef CANTSPELLGDB
   printf("Authenticating %s.\n",pw->pw_name);
-#endif  
 
   /* Authenticate the user running this program. */
 #ifdef USE_PAM
@@ -417,7 +415,7 @@
 #else /* !USE_PAM */
   if( !authenticate_via_shadow_passwd(pw) ) {
 #endif /* if/else USE_PAM */
-    fprintf(stderr,"newrole: incorrect password\n");
+    fprintf(stderr,"newrole: incorrect password for %s\n", pw->pw_name);
     return(-1);
   }
 

Index: utils/run_init/run_init.c
===================================================================
RCS file: /cvs/lsm/selinux/utils/run_init/run_init.c,v retrieving revision 1.4
retrieving revision 1.5

run_init/run_init.c +1 -3
diff -u -r1.4 -r1.5
@@ -258,9 +258,7 @@
   }
   context_free( ocontext );
   
-#ifdef CANTSPELLGDB
   printf("Authenticating %s.\n",p_passwd_line->pw_name);
-#endif  
 
   /* Authenticate the user running this program. */
 #ifdef USE_PAM
@@ -268,7 +266,7 @@
 #else /* !USE_PAM */
   if( !authenticate_via_shadow_passwd(p_passwd_line) ) {
 #endif /* if/else USE_PAM */
-    fprintf(stderr, "run_init: incorrect password\n");
+    fprintf(stderr, "run_init: incorrect password for %s\n", p_passwd_line->pw_name);
     return(-1);
   }