Trusted Solaris 8.0 socket calls
Hello,
Does anybody have ANY idea on how I can incorporate the C TSOL calls into my Java program?
I am truly lost here....
-tx
I received the following reply from a Sun rep concerning this post.
"This is under active investigation and Sun does not yet know whether the Alert in question applies to TSol 8, nor what the potential vulnerability or impact will be in TSol 8. Even if TSol 8 contains the same affected code as standard Solaris 8 it does not mean that TSol is vulnerable to the same security exposure. If necessary a patch will be issued for TSol 8."
I will update this post as I find out more info. I am still interested If anyone else has more info.
Thanks
Similar Messages
-
Trusted Solaris and Java sockets
Hello,
Sun has provided a very rich set of Trusted Solaris 8 socket calls.
But how do I use them from Java?
ThanksThanks. I'm a little bit confused. When I use the following code to display the input stream...
byte[] b = new byte[1000];
int ch = is.read(b);
while (ch > -1) {
System.out.print(new String(b, 0, ch));
ch = is.read(b);
}...I see this...
POST / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-gb
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: localhost
Content-Length: 80
Connection: Keep-Alive
Cache-Control: no-cache
file=C%3A%5Cworkspace%5CConnect%5CTest%5CHTTPTest%5Cres%5Ctest.txt&submit=Upload
...but this doesn't contain the contents of the file that was attached. How can I parse the input stream so I can retrieve the contents of the "temp.txt" file that was attached to the HTML form POST? -
Installing third party application on Trusted Solaris 8
Does anyone know of a procedure describing the steps necessary to install an application into /usr/local/ on Trusted Solaris 8. I've managed to get directories and files created under this by switching between admin_high and admin_low workspaces. However, part of the process requires one of the binaries in a sub-directory under /usr/local/ to write to a file in another sub-directory under /usr/local. I have not found a way for this to successful execute.
HI andouille07,
What application are you trying to install.
Have you tried fallowing this article?
Enable DVD or CD Sharing
http://support.apple.com/kb/ht1131
Enable DVD or CD Sharing should be performed on your desktop.
while "Use a shared DVD or CD:" should be on the air.
If you do not see the remote disk on the air. make sure both your desktop and macbook air are connected to the same network over wifi.
If that dose not work you could try making a disk image, and then coping the disk image to the flash drive and bringing the flash drive over to the other computer. assuming your desktop is a mac.
http://www.ehow.com/video4978318create-disk-image-mac-os.html explains how to make a disk image.
you can always purchase the external super drive as well.
http://store.apple.com/us/product/MB397G/A -
How to enable USB drive and CDwrite in Trusted Solaris.
hello
I installed Trusted Solaris extensions in an X86 desktop and after that the cdwrite disappeared, the usb drive is not detected.
How do I enable the CD writer and the zip drive ? I have a file to be copied urgently, the USB drive doesn't work, the CD writer is not seen on the menu and internet / email is still not functional on this desktop
If there are some commands to be typed, please give me step by step instructions with command syntax and if there is a file to be altered please let me know where to find that file to be altered.
Thank you.Hi Amit,
It's the same for Solaris. Take care about the line breaks in the document (sometimes one command seems to be two commands, it's one with parameters) and there is also a small bug: On page 6, step 5, it must read "Directory = topicmaps/example" (as printed in the screenshot).
Hope it helps
Detlev -
Patch 124847-03 Trusted Solaris 8
I am attempting to apply this patch to Trusted Solaris 8.
I receive the following message after trying to do a patchadd
Checking installed patches...
One or more patch packages included in 124847-03 are not installed on this system.
There are no required packages for this patch.
However, I have made sure that package SUNWuttsc is installed on the system.
Can anyone please give me some insight if they have been successful installing this patch on TS8Hi !!
See this page : http://docs.sun.com/app/docs/doc/816-7177/6md6vfl2f
Best Regards,
Oasis -
How to install Trusted solaris 2.5.1on Enterprise Sever 420R
Hello,
We r doing the installation of Trusted Solaris 2.5.1 and facing some difficulties.
Please tell me whether Trusted Solarise 2.5.1 is supported on Enterprise 420R? if YES then is there any specific procedure for installing the Trusted Solaris 2.5.1.
We have done the installation of trusted Solaris 2.5.1 on Enterprise 420R but after installation ,when we rebooted the server it doesn't find the kernal file to boot the system.
The Error Mesg. at ok prompt is "file not found kernel/unix"
Thanks & Regards,
Nitin mahadik.Hi,
As per data sheet on E420R, the following operating systems are supported on E420R.
Solaris 2.6, 5/98 or Solaris 7,8/99.
Kindly check system with same vesion of Solaris.
I guess this will help you.
Thanks,
SdD -
I have also posted this on the Trusted Solaris Forum, but I figured someone here might have an idea too.
Trusted Solaris 8 7/03 with application servers running at multiple classification levels. I can have single level producers and consumers communicate at each level, but I need a single consumer to be able to subscribe to topics at both levels.
Thanks,
AlanWithin Trusted Solaris, a port is a triple(ip:port:classification), not a tuple (ip:port). There are mechanisms within the C API to trusted solaris to bind to a MLS port. This is doable because the process is actually able to process multiple levels of data, however the JVM is running at a single level and is unaware that it is running on a MLS operating system. I am looking for either a clean way to tell the JVM to connect to a polyinstantiated port (and be able to read data whose label is dominated) or to communicate to a JVM running at a different classification.
-
Client Freezes on socket() call
Hi,
I'm trying to write a client that will connect to a server on a specified port and return the banner if there is any. I've tested the client with a local server and it seems to work fine, but when i attempt to connect to a host on the internet it freezes and a connections is never established (it seems to hang on the socket() call).
This is the client codd:
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class bannerGrab extends JFrame implements ActionListener
* GUI components
private JButton connectButton, exitButton;
private JLabel portLabel, ipLabel;
private JTextField portField, ipField;
private JTextArea outputArea;
private JScrollPane scroller;
* Network Components
private Socket clientSocket;
* Sets up the GUI and make ready for network connection
public bannerGrab()
super("Banner Grab v1.0 - kl365");
Container c = getContentPane();
c.setLayout(new FlowLayout());
* Set u GUI components
portLabel = new JLabel("Port Number:");
ipLabel = new JLabel("IP Address: ");
portField = new JTextField(5);
ipField = new JTextField(10);
outputArea = new JTextArea(15, 30);
outputArea.setLineWrap(true);
outputArea.setWrapStyleWord(true);
scroller = new JScrollPane(outputArea);
connectButton = new JButton("Connect");
connectButton.addActionListener(this);
exitButton = new JButton("Exit");
exitButton.addActionListener(this);
c.add(portLabel);
c.add(portField);
c.add(ipLabel);
c.add(ipField);
c.add(scroller);
c.add(connectButton);
c.add(exitButton);
setSize(350, 400);
show();
public void actionPerformed(ActionEvent e)
if(e.getSource() == exitButton)
System.exit(0);
if(e.getSource() == connectButton)
setupConnection();
* takes care of the socket initialization, connection and msg retrieval
public void setupConnection()
int portNumber = 0;
String host;
if(ipField.getText().equals(""))
outputArea.append("Please input host address/name\n");
return;
if(!ipField.getText().equals("") && portField.getText().equals(""))
portNumber = 21;
host = ipField.getText();
else
try
portNumber = Integer.parseInt(portField.getText());
catch(NumberFormatException nfe)
JOptionPane.showMessageDialog(this, "Port Number must be Integer value", "Number Format Exception",
JOptionPane.ERROR_MESSAGE);
portField.setText("");
return;
host = ipField.getText();
* Attempt to connect to server
try
clientSocket = new Socket(host, portNumber);
catch(UnknownHostException uhe)
JOptionPane.showMessageDialog(this, "Invalid Host Name", "Unknown Host",
JOptionPane.ERROR_MESSAGE);
return;
catch(IOException e)
JOptionPane.showMessageDialog(this, e.toString());
return;
outputArea.append("\n*****************************************************\n");
outputArea.append("Attempting Connection to " + host + " on port " + portNumber + "\n");
BufferedReader inputStream;
* retrieve msg from server if any is present
try
inputStream = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
String inputString = "";
outputArea.append("Receiving Message:\n\n");
while((inputString = inputStream.readLine()) != null)
outputArea.append(inputString);
catch(IOException e)
JOptionPane.showMessageDialog(this, e.toString(),
"IOException", JOptionPane.ERROR_MESSAGE);
return;
public static void main(String args[])
bannerGrab app = new bannerGrab();
app.addWindowListener(
new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
}thanks for the help,
kl365By "socket() call" you mean "new Socket(host, port)"?
Make sure it's there the program hangs: surround the call with debugging print()s; get a stack trace while it's hanging (Unix: control-backslash, Windows: control-break). Check the host name. Try with a numeric IP address. Try if "telnet host port" can open the connection. Is there a firewall that blocks access to the port? Does the hang time out after e.g. one minute? -
Trusted Solaris 8 DIICOE compliance?
Is Trusted Solaris 8 (or 7) DIICOE compliant??
You may want to pose this question on the Trusted Solaris forum:
http://supportforum.sun.com/cgi-bin/WebX.cgi?/security.trustedsolaris -
Trusted Path Menu (Trusted Solaris 8)
What file defines the layout of the trusted path menu? Can items be added to the trusted path menu? We are currently converting from the Trusted SCO CMW operating system to the Trusted Solaris 8 operating system and we had modified the trusted path menu in SCO to add some of our applications to it for certain types of users, and I was wondering how we can do the same thing on Trusted Solaris? I have not been able to locate a file that defines the trusted path.
You may want to pose this question on the Trusted Solaris forum:
http://supportforum.sun.com/cgi-bin/WebX.cgi?/security.trustedsolaris -
Portal Server (JES1 version) and Trusted Solaris
Federal Sales Opportunites are demanding more and more that Sun move to "Trusted Solaris" Does anyone know if the Portal Server that ships with JES would actually work on Trustes Solaris 8
Any guidance would be greatly appreciated.
Thanks
Adamhi sushmac,
I could start the portal server. basically it was a CACAO problem. I first checked whether my cacao was up or not. Actually the cacao was not up as I didn't had any JDMK home in my system . So, in the next step I downloaded SUNJDMK and then setted the jdmk home parameter for cacao as well as the Javahome parameter.. After this I rebuild the dependencies
by ./cacaoadm rebuild-dependencies
and started the cacaodm. using ./cacaoadm start
after that I could easily run the configuration examples.
thanks for ur help
I want some more details on cacao... from where can I get them..
thanks
dhawanmayur -
Advantages of Solaris 10 library function calls over Solaris 8 calls.
Hi,
We are planning for a migration of OS from Solaris 8 to Solaris 10. We referred some documents related to Solaris 10 features and the 'What's new' document for Solaris 10. However we couldn't find much difference on library function calls.
It would be really grateful if anybody could give some more information on the function calls that are changed from Solaris 8.
Thanks,
Palani_techm.Can you be more specific? There's are whole slew of changes (dtrace, driver framework changes (usb, gldv3, sata...), graphical changes (gnome, opengl) ), some function additions to make linux source compatibility easier. I don't think the C library (3C) has been changed that much minus new functions, since it would make forward compatibility more difficult.
-
Solaris 2.6 - System Call faults
Hi Sun Forums.
Machine Description : SunOS serv-sif 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-Enterprise
Number of CPU's : 4 (400Mhz)
Physical Memory : 5120 Mb
Top Output :
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
11115 syb119 2 10 0 506M 498M cpu4 179.6H 24.89% dataserver
5078 syb119 1 0 0 1696K 1408K cpu0 0:00 0.51% top
11113 syb119 2 58 0 506M 498M sleep 146.3H 0.09% dataserver
3592 syb119 2 59 0 1030M 1023M sleep 282.6H 0.07% dataserver
1193 root 1 58 0 7536K 3144K sleep 159:38 0.02% jre
1199 root 1 59 0 3144K 1064K sleep 0:00 0.01% httpd
3596 syb119 2 59 0 1030M 1023M sleep 110.6H 0.01% dataserver
11114 syb119 2 58 0 506M 498M sleep 168.6H 0.00% dataserver
3595 syb119 2 58 0 1030M 1022M sleep 151.6H 0.00% dataserver
1182 root 1 58 0 5128K 2768K sleep 17:53 0.00% jre
1 root 1 58 0 1648K 384K sleep 5:40 0.00% init
19230 syb119 1 58 0 10M 1968K sleep 0:43 0.00% backupserver
1253 root 1 58 0 16M 1624K sleep 0:43 0.00% ecoad
1052 root 18 23 0 4736K 1608K sleep 0:42 0.00% syslogd
1026 root 1 48 0 1904K 1144K sleep 0:41 0.00% inetd
Possible Problem : vmstat
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s6 s9 s1 sd in sy cs us sy id
0 0 0 4710944 80856 0 0 392 0 0 0 0 0 0 0 0 3208 512747 1557 49 51 0
The value Faults for System call = 512747 very high value.
The process running in Solaris are working slowly ...
Any idea ?
PIDIt is possible that this card may not be compatible with this Solaris
system.
You may want to check these sites out for driver related information:
http://soldc.sun.com/developer/support/driver/
http://soldc.sun.com/developer/support/driver/IO_kit/PCI.html
Thx
Tushar Patel. -
Solaris 10: intercepting system calls
Hello,
I have a problem: I don't manage to intercept system calls (as described in this document http://packetstormsecurity.org/groups/thc/slkm-1.0.html). Is it because solaris 10 doesn't use the syscall table ?
Another problem that I have is that I don't manage to perform a simple printf() on the screen when I use a load my kernel module. Has someone got an explanation ?
In fact I need to intercept some syscall like SYS_open, SYS_read, ... to perform custom actions. Do you have another way to do this ?
Thanks in advance for you help.BTW, I'm running 64-bit Solaris as a VirtualBox (3.0.10) guest VM on a 32-bit WinXP host.
-
Our Solar System is not called the "Milky Way."
This is not a question but a correction to the web site's LabVIEW developer challenge. Under the Solar system challenge they reffered to our solar system as the milky way, the milky way is infact the "GALAXY" in which SOLAR SYSTEM resides.
joshSo our star system is called what? Our star is called Sol and the star system is the solar system, right?
You are correct that the Milky Way is a galaxy, not a star system. (It is also the best candy bar for eating frozen if you ask me
Bob Young
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]
Maybe you are looking for
-
The invocation resulted in an error: java.util.NoSuchElementException
I am trying to implement sftp protcol for oracle service bus using business service. While invocation it is throwing "The invocation resulted in an error: java.util.NoSuchElementException" error. Does any one know the reason for it?
-
Does any one know if/when more companies will sign up to using Passbook in the UK?
Hi, I really enjoy using Passbook but there aren't many companies currently using it. Does any one know whether we will have more companies or brands signing up to use Passbook soon? Thanks
-
Executing script command in Screen
I'm having a problem with a script I wrote for my Minecraft server. The script is written to dynamically update a configuration file on one of my plugins, then reload the plugin after the file change. My minecraft server console is running in a scree
-
Change disc icons in OS X Lion?
Anyone know how to do this? I tried following the example for Snow Leopard found here: http://support.apple.com/kb/ht2493 This does not work on Lion. No image will show now on my usb thumb drive now. Any other way to do this? Thanks
-
HT201210 i need to fix my phone, or you may change it by giving me a new one
apple is responsable for this phone and update.. you should help your customers by yourself either way, you will be loosing them all